How to get the type of card like debit card or credit card using card number.. are there any regular expressions like we have for types of credit cards?
Thanks in advance
Differntiate the type of card like credit or debit card
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 6, 2014, 12:56 AM EST
You just have to know (for a given issuer) which ranges of numbers represent debit and credit cards.
There's a useful list here on Wikipedia:
http://en.wikipedia.org/wiki/List_of_Issuer_Identification_Numbers
but, as you'll see, trying to devise a single regular expression to make this determination would be impractical.