Regular Expressions 101

Library entries

Credit Card Validation - MasterCard, Visa, Amex, Discover

Vote

4

Regular Expression
pcre

/
(^5[1-5]|^4|^3[47])|(^6011|65|64[4-9]|622(1(2[6-9]|[3-9]\d)|[2-8]\d{2}|9([01]\d|2[0-5])))\d+
/
g

Description

Loading markdown...
Submitted by Eric Foster - 5 years ago