|
TheHuggableOne Newbie
Joined: 08 Jan 2004 Posts: 1
|
Posted: Thu Jan 08, 2004 11:41 pm
Problems redirecting chat... |
I'm trying to redirect chat. I'm using the pattern:
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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
|
|