[vox-tech] Perl script help

David Hummel vox-tech@lists.lugod.org
Wed, 24 Mar 2004 19:28:53 -0800


On Wed, Mar 24, 2004 at 03:32:58PM -0800, Richard Crawford wrote:
> 
> This script is supposed to remove everything between <form and reset>. 

Here's another more terse version:

=====
#!/usr/bin/perl -i
$/='';
$d = <>;
$d =~ s/<form.*?reset>/<!-- form action removed -->/gs;
print $d;
=====

Call it with file arguments.

-David