Help for this page

Select Code to Download


  1. or download this
    my $string = '"foo"';
       $string =~ s/\"(.*?)\"?/$1/;
    
    print $string;
    
  2. or download this
    my $string = '"foo"';
       $string =~ s/"(.*?)"?/_$1_/; # note that you don't have to escape "
    
    print $string; # prints __foo"