in reply to regular expression and nested tags

Don't attempt to parse HTML (or XML) with RegExps, that won't work. Use a proper parser, like HTML::Parser.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: regular expression and nested tags
by vitoco (Hermit) on Jun 12, 2009 at 22:30 UTC

    I'm just doing some global substitutions to clean up a slurped doc.