|
donki1 Beginner
Joined: 02 Oct 2004 Posts: 12
|
Posted: Sat Oct 02, 2004 9:20 am
pattern matching/ do not mach |
Ive got a trigger with the next pattern: ^%s({^Member|@myname})
All i want, put the names of the members of my group to a variable, except my own name and the Member word.
Why doesnt this pattern work? (It doesnt put Member, it put Membe to the variable) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Oct 02, 2004 10:27 am |
{^Member} matches any string which isn't 'Member'. 'Membe' isn't 'Member' so it matches. This is a difficult pattern-wildcard to use. It's simpler to use #IF.
#TR {%s(*)} {#IF (("%1" <> "Member") AND ("%1" <> @myname)) {#ADDI variable {%1}} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
donki1 Beginner
Joined: 02 Oct 2004 Posts: 12
|
Posted: Sat Oct 02, 2004 11:33 am |
Yes, this works.
How can i do this with wildchars? It's like ^%s({^M|Me|Mem|Memb|Membe|Member}) ? |
|
|
|
|
|