Help for this page

Select Code to Download


  1. or download this
    s/\\n/\n/g;
    
  2. or download this
    s/\\/\\s/g;
    s/\n/\\n/g;
    s/\r/\\r/g;
    
  3. or download this
    s/\\n/\n/g;
    s/\\r/\r/g;
    s/\\s/\\/g;
    
  4. or download this
    my %xlat = ('\\' => "\\", 'n' => "\n", 'r' => "\r");
    
    s/\G(?:\\(.)|(.))/defined($1) ? $xlat{$1} : $2/eg;