|
selberhad Newbie
Joined: 25 May 2003 Posts: 4
|
Posted: Wed Aug 13, 2003 3:03 am
Single character &Var |
From what I understood of the help file for pattern matching,
&?OneChar
should match a single character and store it in the @OneChar variable. This doesn't work - anyone know what I am doing wrong, or if this is a bug? I have gotten around it, but I am surprised it doesn't work.
Thanks,
Selberhad |
|
|
|
SerpentDrago Newbie
Joined: 10 Nov 2002 Posts: 8 Location: USA
|
Posted: Wed Aug 13, 2003 3:46 am |
From what i know and used theam its &whatever theres no ?
I belive you were adding a ? after & ... dont' know why .. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Aug 13, 2003 4:44 am |
You're right, it doesn't work so I guess you can call it a bug. Use (?) instead, and make the variable assignment in the Value section (that's probably your workaround anyway).
#TR {(?)} {#VAR OneChar %1} |
|
|
|
selberhad Newbie
Joined: 25 May 2003 Posts: 4
|
Posted: Wed Aug 13, 2003 5:11 am |
SerpentDrago: If you check out the help file, they say a wildcard character can be inserted between the & and the name of a &VarName style pattern, in order to restrict it to the type of the wildcard.
LightBulb: Thanks =). Yes, that was my workaround. |
|
|
|
SerpentDrago Newbie
Joined: 10 Nov 2002 Posts: 8 Location: USA
|
Posted: Wed Aug 13, 2003 11:39 am |
selberhad .. Ohhhhhhh
Got ya , sorry , what little i know was trying to help :) s |
|
|
|
|
|