How to match criteria for ( , ) , [ , ] , < , > in glob function always succeed in Smarts ASL.
All supported releases of Smart
Add double escape characters \\ in glob for (, ), [, ], < , >
Example:
data = "InCharge"; if (glob(">", data )) { print("TEST1: > found"); } if (glob("*>*", data)) { print("TEST2: *>* found"); }
Hence both TEST1 and TEST 2 will print. Both will default to TRUE even if > is not with in data. The proper matching criteria is with double escape characters.
Example:
glob("\\>", data) or glob("*\\>*", data)