views:

90

answers:

2

I am working on a ACH payment processor and was wondering if I can scope the drivers license field against some rules. Any ideas on this? Can I assume numbers only or anything else more like SSN

Thanks

+4  A: 

See MVR DRIVER'S LICENSE: REQUIREMENTS AND ORDER GUIDELINES (PDF).

Alek Davis
Haha, I would love to see anyone attempting that regex. Looks even worse then e-mail validation.
Anders
@Anders, you mean those 50 or so regexes, right? To do a meaningful validation you'd have to have a separate pattern per numbering scheme, and to match the pattern to the issuer.
John M Gant
@John M Gant, referring to http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html , and yeah of course.
Anders
Note that this list does not seem to cover all US drivers' licenses -- I don't see the federal government in that list, but it also issues licenses.
Porculus
A: 

Assuming your in the USA each state has different formats for their driver license numbers so as far I know you would have validations on a state wide basis. This site should get you started w/ validation by driver's license number:

http://www.highprogrammer.com/alan/numbers/index.html

mdgrech