55
I need Regex to detect when the credit card flag is Hipercard, Aura and Elo.
I already own regexes for Amex, Martercard, Diners Club, Visa, Discover and JCB:
Visa: ^4[0-9]{12}(?:[0-9]{3})
Mastercard: ^5[1-5][0-9]{14}
Amex: ^3[47][0-9]{13}
Diners Club: ^3(?:0[0-5]|[68][0-9])[0-9]{11}
Discover: ^6(?:011|5[0-9]{2})[0-9]{12}
JCB: ^(?:2131|1800|35\d{3})\d{11}
There is a free service that returns this information. See http://www.binlist.net/
– Leikovsk