Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    $value =~ s#\\\*#STAR#g;
    $value =~ s/\"//g;      # now remove double quotes
    print 'output string:   ', $value, "\n";
    
  2. or download this
    original string: "sample1\*sample2\*sample3*sample4*sample5"
    output string:   sample1STARsample2STARsample3*sample4*sample5