I cannot get my head around what you are trying to say...but...there is no need to remove the <span> and <div> tags any more than you do any of the rest of the page's HTML.
use strict; use LWP::Simple; my $html = get("http://example.com"); while ($html =~ /<td>(.+)?<\/td>/gc) { print $1."\n"; } # untested as written on my mobile
This will fetch a webpage and extract and print the content of every <td> tag. No need to strip anything out first or to make more than one request to the webserver.
In reply to Re^5: joining words
by Bod
in thread joining words
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |