Help for this page

Select Code to Download


  1. or download this
    $b = quotemeta $b;
    $a =~ s/$b/$c/g;
    ...
    #or
    
    $a =~ s/\Q$b/$c/g; # \E not needed at end of pattern