in reply to Re: Help using HTML::Parser
in thread Help using HTML::Parser
That's where I get stuck because I see no way to "merge" my "new" document that contains only <bar> tags AND the original text with the original document, which contained the original text and all the other tags. Hope that clarifies.while (my $token = $p->get_token ) { ..... if ($token->is_text) { $text .= $token->return_text; } } $text =~ s/foo/<bar>foo</bar>/g;
|
|---|