It's a shame he wrote all that C code when this suffices perl -i.orig -pe ' s/\bnoframes\b/nofraMes/g; s/\bframeset\b/fraMeset/g' netscape* also, you don't need to xxxx out the tags; Netscape downcases incoming HTML and then uses strcmp(). John