I have a corpse collection set of triggers that activates on this:
You get Corpse of a Rat.
But every so often, when too many lines come through at once , my prompt ends up on the same line and I get this:
< 15973hp 238mana 102mv > You get Corpse of a Rat.
Now, without using regular expressions, I can do this:
*ou get * of *.
That way, whether the line starts with "Y" or "< 15973hp 238mana 102mv > Y" it will work just fine.
The problem, though, is that I have to do this as a regular expression (because it may not always be Corpse, but also Sludge, Remains, etc., but not "sword" or "helm" etc.)
With a regular expression, though, it doesn't seem to pick it up at all:
^(.*?)ou get (@!corpsetype) of (.*?)\.$
Now I know that the (@!corpsetype) works, because the trigger is perfectly fine whenever the line doesn't have the prompt show (You get Corpse of a Rat).
But whenever the line starts with < 15973hp etc, the trigger fails, and I would THINK that the (.*?) wildcard would account for that, but it doesn't seem to. I have tried it with and without the "ou" but nothing changes.
Is it possible to have a regular expression accomplish what I'm trying to do?
You get Corpse of a Rat.
But every so often, when too many lines come through at once , my prompt ends up on the same line and I get this:
< 15973hp 238mana 102mv > You get Corpse of a Rat.
Now, without using regular expressions, I can do this:
*ou get * of *.
That way, whether the line starts with "Y" or "< 15973hp 238mana 102mv > Y" it will work just fine.
The problem, though, is that I have to do this as a regular expression (because it may not always be Corpse, but also Sludge, Remains, etc., but not "sword" or "helm" etc.)
With a regular expression, though, it doesn't seem to pick it up at all:
^(.*?)ou get (@!corpsetype) of (.*?)\.$
Now I know that the (@!corpsetype) works, because the trigger is perfectly fine whenever the line doesn't have the prompt show (You get Corpse of a Rat).
But whenever the line starts with < 15973hp etc, the trigger fails, and I would THINK that the (.*?) wildcard would account for that, but it doesn't seem to. I have tried it with and without the "ou" but nothing changes.
Is it possible to have a regular expression accomplish what I'm trying to do?