Ignoring *'s

Posted by Thaklos on Wed 10 Jul 2002 10:49 PM — 2 posts, 10,809 views.

#0
I am having trouble making this trigger work. Here is the trigger:

*You see tracks of \**\* leading * from here.

;{g[{RThaklos{g][{GHUNT{g] {R%2 {Yis {R%3 {g[{B\?{g]{x

This is supposed to match with something like this output:

2850hp 753m 334mv You see tracks of an Ewenlath Horror leading down from here.

2850hp 753m 331mv You see tracks of *Lord Jereth* leading west from here.

2850hp 753m 328mv You see tracks of an Ewenlath Horror leading down from here.

2850hp 753m 325mv Wall of force is here!

Ideally it would match with the Lord Jereth hunt so I could identify the nefarious PK and inform my group. In case anyone was wondering this is for a hunt all command on a PK MUD called Act of War.
Australia Forum Administrator #1
Have you made it a regular expression? If so, it needs to look a bit different. If not, you must use a regular expression, as asterisks are wildcards.

^.*You see tracks of \*(.*)\* leading (.*) from here\.$

When using the asterisk inside the regular expression as a wildcard, you must make it dot-asterisk, and put brackets around it, as I did above. You can also have dot-asterisk without the brackets if you don't want the matching text 'returned'.

Finally, the final period must be "escaped" otherwise it matches a single character, not a period.