I haven't figured out the trick to triggering a pattern multiple times in a single line. I'm attempting to check the contents of my pocketbelts and store the values in a table. I can make three or four triggers or come up with a complex regular expression to do this, so that's not my question. Can anyone tell me how to match on a very simple expression that just repeats on the same line? My trigger isn't doing it.
Sample output to match on:
My trigger:
My results:
Edit: monospace isn't monospaced? Code is, though. Heh.
Sample output to match on:
You check the contents of your 5 pocketbelts:
3959 spices 5 kombu 63 coltsfoot
36 kafe 53 galingale 49 pennyroyal
50 faeleaf 51 calamus 61 marjoram
2 colewort 51 myrtle 120 chervil
50 arnica
My trigger:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="(\d+)\s+(\w+)"
regexp="y"
repeat="y"
send_to="12"
sequence="100"
>
<send>Note("You have %1 of %2.")</send>
</trigger>
</triggers>
My results:
You check the contents of your 5 pocketbelts:
You have 5 of pocketbelts.
3959 spices 5 kombu 63 coltsfoot
You have 3959 of spices.
36 kafe 53 galingale 49 pennyroyal
You have 36 of kafe.
50 faeleaf 51 calamus 61 marjoram
You have 50 of faeleaf.
2 colewort 51 myrtle 120 chervil
You have 2 of colewort.
50 arnica
You have 50 of arnica.Edit: monospace isn't monospaced? Code is, though. Heh.