Using that code on the example data you provided actually works for me. So I suspect you are running into a bug in the regular expression engine in your version of Perl.
- tye (but my friends call me "Tye")In reply to (tye)Re2: Expression matching
by tye
in thread Expression matching
by amearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |