which is also what the HTML::Parser example delivers. But if you feed this through the regex, it will result in

Code

" WIDTH=200>

Perl Guru Ooops! -->

which is certainly not the wanted result. Ok, this is a constructed example, but I just wanted to point out that there is the possibility that the regex may fail even if the HTML is valid. If this doesn't bother you, it's ok. Just a small hint if you want to keep the regex: Add the s modifier to the regex, so the dot will match newline characters and thus allow tags to be spread over several lines. Alternatively, you can of course filter the newlines before applying the regex.