in reply to Re^4: joining words
in thread joining words
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: joining words
by afoken (Chancellor) on Dec 19, 2020 at 22:35 UTC |