|
Ren Beginner
Joined: 04 Apr 2003 Posts: 27
|
Posted: Fri May 30, 2003 9:29 am
capturing with & in lowercase |
> Balwog II pings you.
Pattern: &%wping *pings you.
This captures 'Balwog' into my 'ping' variable. I want it to be captured as 'balwog' though. I messed around with %lower but can't seem to get it right.
Any ideas? :)
- Ren |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri May 30, 2003 12:37 pm |
#TRIGGER {&%wping *pings you.} {#VAR ping %lower(@ping)}
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri May 30, 2003 4:47 pm |
Or
#TR {(%w) *pings you} {#VAR ping {%lower( %1)}}
This ensures you'll never put a capital letter into the variable. If you capture the variable in the pattern, then modify it, you'll have a capital in there for at least a few nanoseconds.
LightBulb
Advanced Member |
|
|
|
|
|