This isn't part of your problem, but in the interest of simplifying your regex: starting a regex with ^.* is useless. These are identical:
/^.*foo/ /foo/
Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.
In reply to Re: Why this simple code doesn't work?
by aaron_baugher
in thread Why this simple code doesn't work?
by uksza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |