To be equivalent, it should be:
$TERMSDEF = qr/\b\w+\b|(?:'.+?')|(?:".+?")/isx;
Mind you, the "i" and "x" are useless here, but the "s" is necessary.
In reply to Re^2: Regex won't match.
by ikegami
in thread Regex won't match.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |