I have a trigger that looks like this:
and I am wanting it to match exactly four times on this text from the server:
However, it doesn't work like I want it to on line 3 of the input - it matches on the ginseng entry, but not on the goldenseal entry. This is something of a showstopper.
What is the problem here, and how do I fix it? I have ticked the 'Repeat on same line' box in the trigger creation dialogue box, and as far as I can see, the trigger's not greedy enough to eat the whole line.
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="[ *(\d+)] (ginseng root|valerian|goldenseal root|myrrh gum)"
regexp="y"
repeat="y"
send_to="12"
sequence="100"
>
<send>do_stuff()</send>
</trigger>
</triggers>
and I am wanting it to match exactly four times on this text from the server:
[ 11] bayberry bark [ 7] bellwort flower [ 10] black cohosh
[ 80] bloodroot leaf [ 8] blueberry [ 39] echinacea
[ 15] ginseng root [ 16] goldenseal root [ 8] hawthorn berry
[ 14] irid moss [ 18] kelp [ 14] kola nut
[ 200] kuzu root [ 498] lady's slipper [ 10] leather
[ 30] lobelia seed [ 16] myrrh gum [ 3] piece of stag's
[ 101] prickly ash bark [ 11] prickly pear [ 11] sileris
[ 11] skullcap [ 10] slippery elm [ 237] valerian
[ 54] venom sac [ 2] yellow ink
However, it doesn't work like I want it to on line 3 of the input - it matches on the ginseng entry, but not on the goldenseal entry. This is something of a showstopper.
What is the problem here, and how do I fix it? I have ticked the 'Repeat on same line' box in the trigger creation dialogue box, and as far as I can see, the trigger's not greedy enough to eat the whole line.