Help for this page

Select Code to Download


  1. or download this
    $text =~ s/[\x00-\x09\x0b-\x1f]+//g; # + for speed
    # or
    $text =~ tr/\x00-\x09\x0b-\x1f//d; # tr/// for even more speed
    
  2. or download this
    # OLD:$text =~ s/(?!\n)[^\x00-\x1f]//g;
    $text =~ s/[^\x00-\x1f](?<!\n)//g; # (Can't use + now)
    ...
    
    # Note: it's usually better to avoid \r and \n and use
    # literals like \cM and \cJ or \015, \012 or \x0d, \x0a.
    
  3. or download this
    2;0 juerd@ouranos:~$ perl -e'undef christmas'
    Segmentation fault
    2;139 juerd@ouranos:~$