Nice tip, but that should be m/\b(?:$criteria)\b/.
print('BOTTOM' =~ m/\b$criteria\b/ ?1:0, "\n"); # 1 print('BOTTOM' =~ m/\b(?:$criteria)\b/ ?1:0, "\n"); # 0
In reply to Re^2: Regular Expression match too much
by ikegami
in thread Regular Expression match too much
by enemyofthestate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |