Other Resources:
American Express credit card number validation
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For example, 346997719493686 is a valid American Express credit card number.
How to write a single regular expression to validate a American Express credit card number described above?
✍: FYIcenter.com
Here is the regular expression for American Express credit card number validation:
^3[47][0-9]{13}$
^ - begin of the string
3[47] - matches 34 or 37
[0-9] - any decimal digit
{13} - repeating 13 times
$ - end of the string
2013-01-22, 0👍, 0💬
Popular Posts:
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...