Hello. I am writing a script to capture information about equipment to a database. My main problem is that some of the information is displayed in paragraph form, possibly broken up across lines.
Basically I am trying to combine these three triggers into one:
#TRIGGER {Strength of (%d)} ...
#TRIGGER {Strength of$(%d)} ...
#TRIGGER {Strength$of (%d)} ...
I have tried the following, and none of them work. Apparently the $ symbol does not function when inside of a list of options for a string to match.
#TRIGGER {Strength{$| }of{$| }(%d)} ...
#TRIGGER {Strength{ of |$of | of$}(%d)} ...
Is there any neater way to do this than have 3 triggers, one for every line break possibility? Some things even have 3 spaces, and so 4 possible arrangements of line breaks.
On a side note, is there a way to have a trigger that will fire multiple times within a line? So that...
Foo is 5, Bar is 8
being the text in the mud would cause this trigger
#TRIGGER {{Foo|Bar} is (%d)} ...
to fire twice, once with 5 in %1, once with 8?
Any help at all will be most appreciated, thanks.
-illusion