Help for this page

Select Code to Download


  1. or download this
    # 3 -- 23 chars
    # note: using $ instead of \z is *wrong*
    # note: using . without /s is *wrong*
    sub g3 { pop=~/^(.*?)\1+\z/s&&$1 }
    
  2. or download this
    sub g3 { pop=~/^(.*?)\1+\z/s;$1 }