in reply to Re: Retrieve & Replace strings in one Perl line.
in thread Retrieve & Replace strings in one Perl line.

I'm not sure from the way the question is worded but, since it is a registry file the requirement might be just to change those lines with "jupiter" and "napre" (are they hostnames?) leaving other lines in the file untouched. -pe might be more appropriate.

perl -pi.bak -e "s/\bnapre/Text1/gi; s/\bjupiter/Text2/gi;" GPPRegistr +y

Just a guess.

Cheers,

JohnGG