Warning: the regex is untested but I believe it should work provided the links have quotations around the URL's.if ($_ !~ m/href=\"http:\/\/.+\.html/) { s/(href=.+?\.)html/$1asp/gi }
In reply to Re: Changing .html to .asp on some links but not others
by astanley
in thread Changing .html to .asp on some links but not others
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |