I want to replace a string within a file using
perl.
We have a line that gets commented out, and I want to replace that line now matter how it was commented out.
for example, I'd want to replace
###ES=PR1A with ES=PR1A
or
##LJW(9/16/26)ES=PR1A with ES=PR1A
I tried:
perl -pi -e 's/ES=PR1A\Z/ES=PR1A/' filename
but the comments are not removed.
Thank you in advance for any guidance you can give..
Linda