I use this little trigger in order to extract some informations from the status:
A normal line it should match should be:
The full syntax would be
(p,s,d,b) at the beignning can appear or not - if any of them appears, a space is inserted before the (e,b) group. The (e,b) group works a bit differently, that means that they control balance and equilibrium, so "e" means you have eq. "-" means you don't, pretty much the same for balance.
Still, it can be only alone on a line like above or:
I tried the trigger above with:
and works just fine.
The problem appears when it has to trigger
(with no additional characters after the text above)
The funny thing is that if you add _anything_ after it, everything's ok, same if you put "-" instead of the "e".
Now, if anyone has any idea where I am doing wrong with this trigger or why Regexp acts so strange, I would apreciate the help.
^H\:([0-9]+) M\:([0-9]+) [(p?)(s?)(d?)(b?)([ ]?)(e|\-)(b|\-)]A normal line it should match should be:
H:3338 M:2036 [ps eb]
A young rat wanders back into its warren where you may not follow.The full syntax would be
H:3338 M:2036 [psdb eb](p,s,d,b) at the beignning can appear or not - if any of them appears, a space is inserted before the (e,b) group. The (e,b) group works a bit differently, that means that they control balance and equilibrium, so "e" means you have eq. "-" means you don't, pretty much the same for balance.
Still, it can be only alone on a line like above or:
H:3338 M:2036 [p eb] A young rat wanders back into its warren where you may not follow.I tried the trigger above with:
H:3338 M:2036 [eb]and works just fine.
The problem appears when it has to trigger
H:3338 M:2036 [p eb](with no additional characters after the text above)
The funny thing is that if you add _anything_ after it, everything's ok, same if you put "-" instead of the "e".
Now, if anyone has any idea where I am doing wrong with this trigger or why Regexp acts so strange, I would apreciate the help.