Help for this page

Select Code to Download


  1. or download this
    perl -le "$str='a\\:b:c'; my (undef,$x,$y)=split /((?:[^:\\]+|\\.)*):/
    +s,$str,2; print for $x,$y"
    a\:b
    c
    
  2. or download this
    perl -le "$str='a\\:b:c'; my ($x,$y)=$str=~/^((?:[^:\\]+|\\.)*):(.*)$/
    +s; print for $x,$y;"
    a\:b
    c