|
enema Beginner
Joined: 06 Aug 2009 Posts: 11
|
Posted: Wed Sep 09, 2009 12:45 pm
Really really simple pattern matching question. |
the zMUD help files are awful.
I would like a trigger to match any line that says:
The small frog looks at Brian.
The small frog looks at God.
etc.
but just ignore any line that ends in "You":
The small frog looks at You.
P.S. what's the command to "deactivate all triggers"? I found it in the help file a few days ago and I can't get back to it.
Thanks in advance
EDIT:
All I really want to know is the syntax for "match all except <string>", all the help file seems to say is {^string} and I don't know exactly what I'm supposed to do with that. #TRIGGER {^The small frog looks at* {^You}} is what it seems to be suggesting but it doesn't make any sense. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Sep 09, 2009 2:27 pm |
A quick read of the section on Pattern Matching should show what you want.
This trigger pattern should do the trick.
Code: |
The small frog looks at {^You} |
|
|
_________________ Asati di tempari! |
|
|
|
enema Beginner
Joined: 06 Aug 2009 Posts: 11
|
Posted: Thu Sep 10, 2009 1:13 pm |
that works, thanks.
I did read the help section on pattern matching but it never used {^String} in an example that I could find.
Thank you again |
|
|
|
|
|