Probably what you're doing wrong is assigning the string to the variable wrong. But since you didn't show how you did that, it's just a guess.
Usually, what you want to do is this:
$TERMSDEF = qr/\b\w+\b|(?:'.+?')|(?:".+?")/;
That will preserve all the regex semantics, keep your code readable, cure cancer, etc.
In reply to Re: Regex won't match.
by Sue D. Nymme
in thread Regex won't match.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |