Yep, you're right. For whatever reason, I had non-backtracking patterns on the brain even though there is nothing in the regex that states it is non-backtracking... And the $ shouldn't be there, it was a blind copy/paste from OP's code.
In reply to Re^3: Simple Regular Expression Help Needed
by northwind
in thread Simple Regular Expression Help Needed
by PerlBear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |