|
Felix Newbie
Joined: 30 Nov 2004 Posts: 2
|
Posted: Tue Nov 30, 2004 6:01 pm
%match with <@variable>? |
#var aff1matches %match(&affects,<@DBsearchaff1>(*)By (%n),trash,DBfoundaffval1)
I get a syntax error at the < in <@DBsearchaff1>. Why is this? |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Tue Nov 30, 2004 8:00 pm |
Because <> are MapDir characters by default. You have to use ~< to make them a part of the pattern.
Once you fix that. The pattern it will match should/would look like "<variablevalue>123 abcdefgBy 50"
And it will store "123 abcdefg" in the variable @trash and "50" in @DBfoundaffval1. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Dec 01, 2004 9:27 am |
The entire pattern should be enclosed in quotes, and you may still have to use the ~ before < and >.
#var aff1matches %match(&affects,"<@DBsearchaff1>(*)By (%n)",trash,DBfoundaffval1) |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|