in reply to Re: Regex won't match.in thread Regex won't match.
To be equivalent, it should be:
$TERMSDEF = qr/\b\w+\b|(?:'.+?')|(?:".+?")/isx; [download]
Mind you, the "i" and "x" are useless here, but the "s" is necessary.