Hi,I'm using the following command to replace values in filessystem("C:/Applications/Interwoven/TeamSite/iw-perl/bin/iwperl -pi.bak -e $pattern $wfFile\n");Where pattern is to find my ($pattern) = qq("s#creator\=\"CAM\-ITS\-DEV\\tsadminuser\"#creator\=\"tmc\\cdoloriert\"#");Basically I want to find creator="CAM-ITS-DEV\tsadminuser and replace it with creator="tmc\cdoloriert"Alternatively, I would like to replace whatever is creator="..." I mean whatever it is in between the quotes with tmc\cdoloriert. I'm done similar substitutions in the past, but because now there are special characters, it's little trickier.Any suggesitons?Thanks in advance
my $pattern = qq('s/creator=".*?"/creator=tmc\\cdoloriert"/g');
open(IN, '<', $fname) || die " '$fname' ($!)";open(OUT, '>', "$fname.new") || die " '$fname.new' ($!)";while (<IN>) { s/creator=".*?"/creator="tmc\\cdoloriert/g; print OUT;}close(OUT);close(IN);rename($fname, "$fname.bak") || die "[rename] '$fname' => '$fname.bak' ($!)";rename("$fname.new", $fname) || die "[rename] '$fname.new' => '$fname' ($!)";