Help for this page

Select Code to Download


  1. or download this
    my $str = 't?e\\\\xt\\\\* with escapes\\*';
    my %swap;
    ...
    $str=~s/((?:\\)(.)|\?|\*)/$swap{$1}||$2/ge;
    
    print ">>$str<<\n";