|
Samus Novice
Joined: 01 Jan 2003 Posts: 32
|
Posted: Tue Jun 15, 2004 5:04 am
Triggers are a mess |
What do I use in a trigger to show if something isn't always in the trigger?
2|709 Lord
3| 8 Lord
How can I match these two? in the first one there is no space between | and 709 but in the second there are 2
#TR [1-40]|(what do I put here)[1-999] Lord} {...} |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Jun 15, 2004 5:13 am |
Your best bet for something like that is either three triggers or a more generic trigger
#TR {(%d)~|(*) %w} {...} |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Jun 15, 2004 11:14 am |
Use the fixed width wildcard &nn.
#TR {%d~|&3 %w} {...}
You can put parenthesis on whatever you want to capture. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Jun 15, 2004 12:22 pm |
Yeah or what Vijilante said. I keep forgetting about those :P
|
|
|
|
|
|