Perl / Regular Expression Question?

Licursi

New member
Hi,
I need a perl/regular expression that can find lines in a file that begin with string X and I want to replace the contents after with Y.

For example:

I want to search for 'System_Identification='
and delete the contents after the = and replace it with my string.

For now when I do simple perl string replaces on a file I use:
perl -pi -e 's/Current Value/NewValue/g' MyFile

But this won't work for my scenerio because I want to delete what is after the '=' sign and replace it with my new string.

Thanks in advance and if you need any clarification please message me!
 
Back
Top