in reply to Reg Expr help

Hi csotzing Some time ago I posted an answer to this exact question that uses HTML::Parser You can find it at Re: Replacement based on pattern. It does precisely what you want. The thread also highlights the problems if using regexen to parse HTML.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print