Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Mortis
Beginner


Joined: 10 Feb 2004
Posts: 21
Location: Sweden

PostPosted: Tue Nov 07, 2006 9:18 pm   

Pattern matching strings.
 
Hello, I have a question I have been unable to solve myself.

If I were to use a string list in my pattern, like this:

#trigger {{@StringList}} {#say %1}

(I realize that %1 doesn't work, only wanted to show the problem)

Is there any way zmud can tell me which string that was found when the pattern triggered.

The pattern I'm using is "^ (*){@StringList}(*)$".
_________________
When you lose, dont lose the lesson.
Reply with quote
Mortis
Beginner


Joined: 10 Feb 2004
Posts: 21
Location: Sweden

PostPosted: Tue Nov 07, 2006 10:37 pm   
 
Ah, Pattern should be ({@StringList}), forgot the "()". Problem solved.
_________________
When you lose, dont lose the lesson.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net