Help for this page

Select Code to Download


  1. or download this
    perl -e 'print map {++$count," : ",$_,"\n"}split /(a|b)+/,"a12cdabab"'
    1 : 
    2 : a
    3 : 12cd
    4 : b
    
  2. or download this
    perl -e 'print map {++$count," : ",$_,"\n"}split /((?:a|b)+)/,"a12cdab
    +ab"'
    1 : 
    2 : a
    3 : 12cd
    4 : abab
    
  3. or download this
    perl -e 'print map {++$count," : ",$_,"\n"}split /(?:a|b)+/,"a12cdabab
    +"'
    1 : 
    2 : 12cd