You're getting burnt by or short-circuiting. Your code works like this.
I think you'd be better off using alternation in your regular expressions rather than using two regular expressions.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: RE prollem: \G, \\? and disappearing data
by davorg
in thread RE prollem: \G, \\? and disappearing data
by bbfu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |