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;
In reply to Search and replace in html by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |