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
donki1
Beginner


Joined: 02 Oct 2004
Posts: 12

PostPosted: Sat Oct 02, 2004 9:20 am   

pattern matching/ do not mach
 
Ive got a trigger with the next pattern: ^%s({^Member|@myname})
All i want, put the names of the members of my group to a variable, except my own name and the Member word.
Why doesnt this pattern work? (It doesnt put Member, it put Membe to the variable)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 02, 2004 10:27 am   
 
{^Member} matches any string which isn't 'Member'. 'Membe' isn't 'Member' so it matches. This is a difficult pattern-wildcard to use. It's simpler to use #IF.
#TR {%s(*)} {#IF (("%1" <> "Member") AND ("%1" <> @myname)) {#ADDI variable {%1}}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
donki1
Beginner


Joined: 02 Oct 2004
Posts: 12

PostPosted: Sat Oct 02, 2004 11:33 am   
 
Yes, this works.
How can i do this with wildchars? It's like ^%s({^M|Me|Mem|Memb|Membe|Member}) ?
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