Keep It Simple, Stupid | |
PerlMonks |
Re: HTML Matchingby autark (Friar) |
on Nov 19, 2000 at 01:08 UTC ( [id://42367]=note: print w/replies, xml ) | Need Help?? |
A regexp will probably not do it right. Your regexp will fail on this example:
<input type="text" value=">"> Why not just use HTML::Parser ? That would be the correct way of doing it. And it is fast too, both to write and execution. Just subclass HTML::Parser, and use the text method, like this: The above code was just copied and pasted from the HTML::Parser pod file. Autark.
In Section
Seekers of Perl Wisdom
|
|