|
solem Beginner
Joined: 16 Mar 2004 Posts: 20
|
Posted: Mon Nov 22, 2004 11:48 pm
Removing Text from string. |
I currently discoved the use of (&nn) in triggers and am useing it to consolidate multiple triggers with into one
In my old triggers I would use {The|A||} to get rid of the THE's and A's at the begining of a string.
i.e.
#TR{^Zone: {The|A||} (%*)$}
Zone: The Good The Bad and The Ugly
%1 would equal "Good The Bad and The Ugly". (Which was perfect)
How can I do this with
#TR {^Zone: (&30)$}
I've searched and searched and tried and tried but can't find anything that works.
A am on the latest and greatest version of ZMud, running XP Pro SP2.
Thank you in advance. |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Fri Nov 26, 2004 11:49 pm |
I have not used the & in awhile but I think if you Put {} around it, that might solve your problem.
Example:
#tr {^zone: {(&30)}$} |
|
_________________ megamog75
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere |
|
|
|
|
|