in reply to Changing .html to .asp on some links but not others

Try s/(href=(?!['"]?http:\/\/).+?\.)html/$1asp/gi;

I used the negative lookahead ((?!...)) to catch the "http://". Yay, Mastering Regular Expressions.

- FrankG