How to find and replace text in a string using Perl

To replace specific text in a string with other text, using perl, the syntax is…

$fullString =~ s/$findString/$replaceString/;

Leave a Reply