Help for this page

Select Code to Download


  1. or download this
    use v5.12;
    use warnings;
    ...
      $str =~ /( (?: (.) (?{COUNT}) )* (*FAIL) )/x;
      say "$l : $c = ", 2 *$l-1;
    }
    
  2. or download this
    # perl /home/lanx/perl/pm/recursive_regex.pl
    abcdefghijklmnopqrstuvwxyz
    ...
    24 : 300 = 300
    24 : 47 = 47