|
Mortis Beginner
Joined: 10 Feb 2004 Posts: 21 Location: Sweden
|
Posted: Thu Mar 24, 2005 3:11 pm
a small %grep problem. |
Hello
I have a alittle %grep() issue.
According to #Type helpfile(and Iam guessing %grep works the same) "the pattern can contain full pattern-matching commands."
Ok. I looked up "Pattern Matching" in the help file.
I wanna use "{val1|val2|val3|...}" AND "{^string} do not match the specified string".
Meaning, I want all lines that DOESNT contain either "anti-mage" or "anti-evil".
After ALOT of trying I can't get it to work.
I can't even get "do not match the specified string" cause zmud automaticly thinks I want to match in the beginning of the line.
Sure..
Code: |
#type (1) {{anti-mage|anti-evil}} |
does work but it's the reverse I want.
So.. Anyone got any sugggestions on how to %grep all lines that DOESNT contain 2 different patterns? |
|
_________________ When you lose, dont lose the lesson. |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Fri Mar 25, 2005 11:00 am |
um i dunno if this will work... but try
if ( !%match( %grep(1,{val1|val2|val3}), "string" ) )
or something similar... :P |
|
|
|
|
|