Help for this page

Select Code to Download


  1. or download this
    $string = '"I have a 15" latter and a 6" foot arm."';
    $string=~s#(^")(.+?)("$)#$1.Quot($2).$3#eg;
    
  2. or download this
    $string=~s#(^")([^\n]+)("$)#$1.Quot($2).$3#eg;
    
    sub Quot
    ...
        $line=~s#"#"#g;
        return $line;
    }