Help for this page

Select Code to Download


  1. or download this
    my @t = qw( regex regex.1 regex.12 regex.1a regex.a regex.abc regex.a1
    + oregex.2 );
    for (@t) {
    ...
        print ' matches!' if /^regex(?!\.[^\d])(\.\d*)?/;
        print "\n";
    }
    
  2. or download this
    regex matches!
    regex.1 matches!
    ...
    regex.abc
    regex.a1
    oregex.2