Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print 'm/^(11+)(\1)+$/', "\n", $exp1, "\n";
    print 'm/^(11+){2,}$/', "\n", $exp2, "\n";
    
  2. or download this
    m/^(11+)(\1)+$/
    The regular expression:
    ...
    )                        end of grouping
    ----------------------------------------------------------------------