Gravey
07-08-2011, 02:32 AM
say i have a string with a * in it, something like "something * blah" and I want to match it exactly, could I do it with matchpattern by escaping the wildcard * to be an exact match?
for example:
-- want this to be true
matchpattern "something * blah" pattern:"something * blah"
-- do NOT want this to be true
matchpattern "something 12345 blah" pattern:"something * blah" something like toLower a == toLower b would probably work in this case but the string i'm trying to match might be in the middle of a string. I could use regular expressions but i think this might be quicker to write, also i'm interested if it's possible.
for example:
-- want this to be true
matchpattern "something * blah" pattern:"something * blah"
-- do NOT want this to be true
matchpattern "something 12345 blah" pattern:"something * blah" something like toLower a == toLower b would probably work in this case but the string i'm trying to match might be in the middle of a string. I could use regular expressions but i think this might be quicker to write, also i'm interested if it's possible.
