Software Engineer. Stuff and nonsense. The usually short ramblings of Chris McKee.

Validating UK Credit & Debit Cards With LUHN to Type

Note: The regex here is pretty worthless; bin's are listed as ranges and should be handled as such, at the time of writing the ranges were relatively limited and this LUCKILY didn't cause any issues Credit Card validation is a Pain in the Arse *Updated April 2010 But its not going anywhere fast. So I’ve combined two of the scripts I’ve found to meet my needs, added UK credit card data (Maestro/VisaDebit etal)…