Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while (<INPUT>) { my $TheLine = $_; chomp $TheLine; if ($TheLine =~ /<html>[^\n]*<\/html>/i) { $TheLine =~ s/<html>([^\n]*)<\/html>/$1/i; print OUTPUT "$1\n"; } } close INPUT; close OUTPUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search and replace in html
by tall_man (Parson) on May 08, 2003 at 23:48 UTC | |
|
Re: Search and replace in html
by Limbic~Region (Chancellor) on May 09, 2003 at 00:06 UTC | |
by Anonymous Monk on May 09, 2003 at 01:16 UTC | |
by Limbic~Region (Chancellor) on May 09, 2003 at 12:56 UTC | |
|
Re: Search and replace in html
by kilinrax (Deacon) on May 08, 2003 at 23:32 UTC | |
|
Re: Search and replace in html
by LameNerd (Hermit) on May 08, 2003 at 23:31 UTC | |
by Limbic~Region (Chancellor) on May 09, 2003 at 00:22 UTC | |
by LameNerd (Hermit) on May 09, 2003 at 03:48 UTC | |
by Limbic~Region (Chancellor) on May 09, 2003 at 12:49 UTC | |
by LameNerd (Hermit) on May 09, 2003 at 22:50 UTC |