Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if (/\<body>(.*)<\/body\>/i){ $body_temp = $_; $body_temp =~ s/(.*?)\<body\>(.*?)\<\/body\>/$2/i; chomp($body_temp);<br> $body = "\<body\>" . $body_temp . "\<\/body\>"; print OUTFILE $body . "\n"; $found_body = 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I read the contents of an HTML file between two BODY tags?
by Ovid (Cardinal) on Apr 27, 2001 at 03:17 UTC | |
|
Re: How do I read the contents of an HTML file between two BODY tags?
by little (Curate) on Apr 27, 2001 at 17:07 UTC | |
|
Re: How do I read the contents of an HTML file between two BODY tags?
by diarmuid (Beadle) on Apr 27, 2001 at 18:35 UTC | |
by FloydATC (Deacon) on Jun 30, 2007 at 12:06 UTC |