This does not work - as jroberts already pointed out - because the first letter after the closing angle bracket is eaten as well. So it's not printed with $POSTMATCH.print $& if /^<a href.*>[^\z]/; print $';
Furthermore the regex contained an additional closing parenthesis - this was already in the original post and just a copy and paste error. I fixed that above.
-- Hofmator
In reply to Re: Re: Extended Regular Expressions
by Hofmator
in thread Extended Regular Expressions
by jroberts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |