I\'m trying to find a Perl on Windows code that enables me to apply multiple find and replace regex queries on multiple files in a specific directory. I\'m able to apply mul
Here is a basic perl program (perhaps name it myreplacers.pl) that can do that:
#!/usr/bin/perl
use strict;
use warnings;
while(<>) {
s/regex1/replace1/;
s/regex2/replace2/;
print;
}
Alter this with appropriate regular expressions and replacement texts and run it like perl myreplacers.pl file1 file2 etc.