if ($_ !~ m/href=\"http:\/\/.+\.html/) { s/(href=.+?\.)html/$1asp/gi }