1
Answer

Differntiate the type of card like credit or debit card

vasu

vasu

10y
713
1
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
Answers (1)
0
Vulpes

Vulpes

NA 163.6k 1.5m 10y
Unfortunately, there's no easy way to distinguish between debit and credit cards from the card number.

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.