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


Joined: 08 Jan 2004
Posts: 1

PostPosted: Thu Jan 08, 2004 11:41 pm   

Problems redirecting chat...
 
I'm trying to redirect chat. I'm using the pattern:
Code:
^Public> (%w) (*)$
and
Code:
#gag
#win conv {%ansi(white)%1 %2}
as the action for now.
And it works alright, asside for special characters.
My name has an apostrophy in it and it doesn't get that, and it doesn't get any word starting with @ ect... how do I get those special characters?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Jan 09, 2004 1:14 am   
 
First, the only way to capture ZMud's special characters is to use a range list or the %* wildcard (it's pretty dangerous, though):

[#@%&] -- keep filling in with the characters until you have enough to capture everything

I'm not really sure of this part, but you might need to preface all the special characters with a quote character (~ by default). If the quote character is one you also need to capture and you have to use it on all the other characters, ~~ should provide you with a way to capture it.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 09, 2004 2:08 am   
 
%w is any number of alpha characters.
%x is any amount of non-white space.

To match words with apostrophes, use %x.
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