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
harrower
Newbie


Joined: 03 Apr 2007
Posts: 5

PostPosted: Thu Apr 05, 2007 12:09 am   

#REGEX and ANSI
 
Is it possible to match ANSI codes in #REGEX, and if so, how is it handled in the REGEX format?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Apr 05, 2007 11:02 am   
 
You'll need to include the literal escape code instead of %e - I believe it's \0 followed by 33. So your trigger:

Code:
%e[34m


becomes

Code:
\033\[34m


On the zMUD UI, you'll see that next to the Perl regular expression checkbox, there's a convert button, and that'll do this conversion for you.
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