| |
|
regular expression for credit card like VISA, MASTER, AMEX Question Posted on 13 Jul 2011 Home >> JavaScript >> JavaScript Questions >> regular expression for credit card like VISA, MASTER, AMEX |
This is a regular expression that validates all credit card numbers including VISA, MASTER, AMEX
^((4\d{3})|(5[1-5]\d{2})|(6011)|(34\d{1})|(37\d{1}))-?\d{4}-?\d{4}-?\d{4}|3[4,7][\d\s-]{15 | |
|
|
|
|