Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^3(?:[47]\d([ -]?)\d{4}(?:\1\d{4}){2}|0[0-5]\d{11}|[68]\d{12})$|^4(?:\d\d\d)?([ -]?)\d{4}(?:\2\d{4}){2}$|^6011([ -]?)\d{4}(?:\3\d{4}){2}$|^5[1-5]\d\d([ -]?)\d{4}(?:\4\d{4}){2}$|^2014\d{11}$|^2149\d{11}$|^2131\d{11}$|^1800\d{11}$|^3\d{15}$
|
Description |
For credit card numbers from MC, Visa, Amex, Diners/CarteBlanche, Discover/Novus, Enroute, and JCB. Does as much as I feel is possible using regex (doesn't do MOD 10). Javascript safe.
|
Matches |
341-1111-1111-1111 | 5431-1111-1111-1111 | 30569309025904
|
Non-Matches |
30-5693-0902-5904 | 5631-1111-1111-1111 | 31169309025904
|
Author |
Rating:
David Conorozzo
|
Displaying page
of
pages;
Items to