in reply to Changing .html to .asp

Definitely using some form of parsing system. Do not not a regex for this. Here's some sample HTML from a document that is routinely sent to us:
<A HREF=" 010410zed2.pdf " target="_blank"><B><font size="-2" face="arial">view cutting </b></A>
Guess what? Browsers have no problem with that. It's annoying as heck, but it works. I found it difficult to follow even reading it, much less trying to write a regex that would parse stuff like that accurately. Play it safe. Use a parser.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.