in reply to Which one is the better Regex?
See. Ovid's HTML::TokeParser::Simple for more info on this groovy little module.use HTML::TokeParser::Simple; my $p = HTML::TokeParser::Simple->new( *DATA ); while(my $t = $p->get_token()) { print $p->get_token()->return_text() and last if $t->is_start_tag('title'); } __DATA__ <html> <head> <title>Nothing to see here</title> </head> </html>
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Which one is the better Regex?
by IlyaM (Parson) on Feb 27, 2003 at 15:25 UTC |