Help for this page

Select Code to Download


  1. or download this
    $_ = "hellohiworldhellohiworldhellohiworldhellohiworld";
    if (/^((.+?)\2+)$/) {
     print "[$1][$2]\n";
    }
    
  2. or download this
    use warnings;
    use strict;
    ...
    [world]
    [hello]
    [hi]