|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sun Oct 12, 2008 12:35 am
ansi triggers |
Thanks to all who have answered my previous questions, I have two more.
One I can not seem to get a trigger to fire on anything that is colored red
%e[1;31m%d This should fire on any red number. I can't get it to fire at all. I can give you the actually pattern but that is where it is failing.
This is the literal pattern I am trying to match.
%e[37m 10 1 %e[1;31m 45 %e[0;32mMichael %e[36mButcher's Shop %e[0m
I can't get it to fire. Also I was wondering if there is a way to do an an or null basically something like trigger on "This is a trigger" or "This a trigger"
Something like This {is|null} a trigger
Thanks again. |
|
|
|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sun Oct 12, 2008 12:53 am |
Solved the color issue, only the {is|null} needs resolution
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Oct 12, 2008 1:38 am |
Sure can do the {is|} trigger...
#TRIGGER {This {is|} a trigger}
Or you could use regex:
#REGEX {This (?:is )?a trigger} would also work...
Charneus |
|
|
|
|
|