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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Sarkhee
Newbie


Joined: 17 Dec 2009
Posts: 1

PostPosted: Thu Dec 17, 2009 10:00 pm   

%match, case-sensitive match?
 
I'm using %match to capture information from my prompt using the following code:

Code:
#IF (%match(@prompt, "cw") <> 0) {...}


This works ok but the problem is that it also matches "CW" with uppercase. How can I make sure to only match specific combinations like "cW" or "Cw" (case-sensitive).
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Dec 17, 2009 11:23 pm   
 
%pos("CW",@prompt) or %pos("cW",@prompt) or ...

Without knowing the format of the string involved there's not a whole lot more to suggest.
_________________
EDIT: I didn't like my old signature
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sat Dec 19, 2009 6:12 pm   
 
Have a look at this thread.

http://forums.zuggsoft.com/forums/viewtopic.php?t=33913&highlight=case+sensitive
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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