in reply to Subsitutation do with HTML Tag only

If you know regex, do it, otherwise use a proper parser.
  • Comment on Re: Subsitutation do with HTML Tag only

Replies are listed 'Best First'.
Re^2: Subsitutation do with HTML Tag only
by apl (Monsignor) on Apr 07, 2008 at 09:44 UTC
Re^2: Subsitutation do with HTML Tag only
by Anonymous Monk on Apr 07, 2008 at 09:45 UTC

    Hi,

    Because the transformed HTML will kill the parser, I need to correct it first....however, I have some difficultly with the regex that do the matching within tag...

      You should show what you've tried and some of the source input. Bad HTML does not kill the HTML::Parser family; just XML module stuff. You might have to do two passes or something but it's almost certainly possible depending on what you're really doing, which isn't entirely clear in your question.