Try this trigger (I removed the named captures from your base sample since they detract from the regular expression, but feel free to add them back in if you want them):
^(\d+)h, (\d+)m, (\d+)e, (\d+)w, ([cexkdb]+)|(\d+)/(\d+)|(\d+)/(\d+)|(\d+)/(\d+)|(\d+)-
Numeric captures are as follows:
1 = health
2 = mana
3 = endurance
4 = willpower
5 = status indicators, assumes at least one letter present.
6 till 11 = big bunch of zeroes
12 -> number 99 in your example
In simple Send to: triggers, you can use the syntax %1-%8, as I believe number 0 as well as 9 and above get some special values in them, but it doesn't seem to matter for your problem. (Using a script function would free up all numbers though, as would the function GetTriggerWildcard.)
Now, as for your checks of a letter being present in that string of yours, try using string.find (assuming Lua):
if (string.find("%5", "c")) then
Note("Woo, found myself a letter c.")
else if (string.find("%5", "x")) then
Note("Woo, found myself a letter x.")
else
Note("This sucks, I found nothing I could use.")
end
|