Extracting text between HTML tags using perl -
i have html tags in document follows:
><h2 align="justify" ><font size="+2" color="#008ad9"><b>access_number<font size="+2" color="#008ad9"><b> </h2 > i want extract access_number above html text.
how can this? want create sure text between <h2> tags extracted. help appreciated.
use mojo::dom
#!/usr/bin/perl utilize strict; utilize warnings; utilize mojo::dom; $html = <<"eof"; <html> <head> <title>test</title> </head> <body> <h2> <font><b>access_number</b></font> </h2> </body> </html> eof $dom = mojo::dom->new( $html ); print $dom->find('h2 font b')->text; for 8 min video tutorial on mojo::dom , mojo::useragent check out mojocast episode 5
html perl
No comments:
Post a Comment