|
Sir5er Beginner
Joined: 21 Aug 2009 Posts: 11
|
Posted: Fri Aug 21, 2009 3:27 pm
Hi, quick question. |
I'm currently in the middle of creating a series of triggers that will take a chunk of text, the mud i'm in sends the room description and people/items in the room all at once using different colours to cut up the text, and replace or remove parts of it based on ansi code.
Unfortunatly i've noticed wildcards don't work in the functions(or all functions) i'm trying to use them in!
This wouldn't be a problem really except that word wrapping (sever-side) makes the ansi codes appear anywhere within the text.
Is there a way to do this? I know i'll have to be more specific but seeing as my whole concept seems fundementaly flawed it's a bit tricky. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Aug 21, 2009 9:26 pm |
Turn off word-wrapping.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Sir5er Beginner
Joined: 21 Aug 2009 Posts: 11
|
Posted: Sat Aug 22, 2009 1:29 am |
Cheers, i tried getting the trigger to turn wordwrap on and off or set col size to 0 then 80(which is how i like it) but it ended up taking to long to refresh the text on the screen to wrapped/unwrapped.
Now i've just got some crazy range wildcard setups, which seem to work! However i can't seem to find the syntax for matching anything NOT in a range.
ie "Jenny is here. She [0-9a-z but NOT ";"].
Do-able? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Aug 22, 2009 8:59 pm |
There's no way to specify things to exclude from ranges. If you want to exclude them, you have to simply not include them in the range list. This means that you have to use the long way:
[%a%stype in all the symbols you want to include here]
%a -- matches letters AND numbers
%s -- matches whitespace
type in all the symbols you want to include here -- matches any combination of these characters only |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|