Trimming parts of strings into variables.

Posted by Eloge on Mon 24 Jan 2011 01:28 PM — 2 posts, 11,133 views.

#0
I get the output (f.i) from the MUD:

"This fox jumps over the (mob)lady" or then perhaps
"This lady jumps over the (mob) fox"

or whatever such - the main thing is that the string "(mob)" comes immidiately before the word I am looking for ("fox" or "lady").

Now, howto get into a variable (called 'target') the string "lady" or the string "fox". It seems that I got to search for the string "mob" and place the following word in the variable. My question is, how do I acchieve this.

Rgds.
// Eloge
Amended on Mon 24 Jan 2011 03:30 PM by Eloge
Australia Forum Administrator #1
Well, put that as part of the trigger, for example:


Match:  This fox jumps over the (mob)*


Now the first wildcard (%1 in the trigger window) will be the word after (mob).