Help for this page

Select Code to Download


  1. or download this
    for my $d qw(2005-12 2005-100 2005-1- 2005-12- 2005-123- 2005-1000) {
        printf "%-10s: ", $d;
        if ( $d =~ /(?>\d{4}-\d{1,3})(?!-)/ ) {
    ...
          print "nope\n";
        }
    }
    
  2. or download this
    2005-12   : yep
    2005-100  : yep
    ...
    2005-12-  : nope
    2005-123- : nope
    2005-1000 : yep