|
hairui Newbie
Joined: 15 Jan 2003 Posts: 4
|
Posted: Sun Jun 13, 2004 12:56 pm
I need help for String match |
In the help file, I found the information like
"{^string} do not match the specified string".
I think that means when i want a trigger to match a word without some words(such as ABC), i can use the expression like :
#tr {^{ABC} ...} {some actions}
to match the clause i want.But it seems not work.
Can somebody give me a right example? |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sun Jun 13, 2004 1:45 pm |
#trigger {This is a {^123}pattern} {CMDS}
If the mud receives text: This is a 123pattern, the trigger won't fire, because it has "123" in the specified position.
If the mud receives the text: This is a testpattern, the trigger will fire, because it doesn't contain "123" in the specified position.
Note: There MUST be something in the position indicated by {^123}, other than 123, for the trigger to fire. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|