If you are actually testing equivalence, it could be both faster and not prone interpolation problems to if you use eq instead of a regex. This also works for substrings if you know placement within the test string.
In reply to Re: Regex problem
by kennethk
in thread Regex problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |