Ok, in the mud I play mobs have various name lengths. I currently have the trigger set for '(\w*) is in bad shape'. That only returns the first word before the set words, and I was wondering if there was a way to match X words before the text and return them all at the same time.
Neverwhere
Is the only thing likely to be between them spaces? You could just look for a space as well in a "set" (in square brackets), ie.
([\w ]*) is in bad shape
(That is a space after the "w").
Alternatively, since the words "is in bad shape" will define where the name ends, you could just use:
(.+) is in bad shape
Ok...
How do I return all of the words in that (.+) at the same time? Will %1 work?
Neverwhere
Yes, %1 matches everything inside the first round brackets.
why not just trigger on
^* is in bad shape
if it's a new line, and send "blah %1 blah"