Utopian Identification Number

  • + 0 comments

    perl

    while(<>){
        next if $. == 1;
        chomp;
        /^[a-z]{0,3}\d{2,8}[A-Z]{3,}$/ ? print "VALID\n" : print "INVALID\n";
    }