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
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Wed Jun 11, 2008 8:37 pm   

subregex
 
Zugg, do you think you can make a case sensitive subregex command?
oh, and if you ever decide you'd do it, do you think you can get it to return 0 or n if it actually found n matches?

I.. would hold you in high esteem - forever if you did.. well I already do so nothing new..
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Jun 11, 2008 9:05 pm   
 
You can turn on case senstivity in the pattern. To do this put "(?-i)" at the beginning of your pattern, that is part of the regex standard.

The latest version actually can supply a match counter as part of its return string. See the help Advanced Substitutions for more information.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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