RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 12
Title Test Details Visa Credit Card
Expression
(^4\d{12}$)|(^4[0-8]\d{14}$)|(^(49)[^013]\d{13}$)|(^(49030)[0-1]\d{10}$)|(^(49033)[0-4]\d{10}$)|(^(49110)[^12]\d{10}$)|(^(49117)[0-3]\d{10}$)|(^(49118)[^0-2]\d{10}$)|(^(493)[^6]\d{12}$)
Description
Matches Visa CC types 13 or 16 digits starting with 4 including Visa CC, Visa ATM only, Visa Electron and Visa Delta. Safe for international and will NOT match "^(49)" Switch debit cards.
Matches
4111111111111111
Non-Matches
4903020000000008
Author Rating: Not yet rated. brad
Title Test Details Maestro Credit Card
Expression
(^(5[0678])\d{11,18}$) |(^(6[^0357])\d{11,18}$) |(^(601)[^1]\d{9,16}$) |(^(6011)\d{9,11}$) |(^(6011)\d{13,16}$) |(^(65)\d{11,13}$) |(^(65)\d{15,18}$) |(^(633)[^34](\d{9,16}$)) |(^(6333)[0-4](\d{8,10}$)) |(^(6333)[0-4](\d{12}$)) |(^(6333)[0-4](\d{15}$)) |(^(6333)[5-9](\d{8,10}$)) |(^(6333)[5-9](\d{12}$)) |(^(6333)[5-9](\d{15}$)) |(^(6334)[0-4](\d{8,10}$)) |(^(6334)[0-4](\d{12}$)) |(^(6334)[0-4](\d{15}$)) |(^(67)[^(59)](\d{9,16}$)) |(^(6759)](\d{9,11}$)) |(^(6759)](\d{13}$)) |(^(6759)](\d{16}$)) |(^(67)[^(67)](\d{9,16}$)) |(^(6767)](\d{9,11}$)) |(^(6767)](\d{13}$)) |(^(6767)](\d{16}$))
Description
Meastro ONLY card matching - begins with "50" or "56-58" or "6" & 13 to 20 total digits. Overlap of Discover, Solo and Switch is handled and NOT matched.
Matches
5600000000000003
Non-Matches
6011000000000004
Author Rating: The rating for this expression. brad
Title Test Details MasterCard Credit Card
Expression
^5[1-5]\d{14}$
Description
Matches MasterCard credit cards. International safe, no overlap with other cards.
Matches
5100000000000008
Non-Matches
201400000000009
Author Rating: Not yet rated. brad
Title Test Details Discover Credit Card
Expression
(^(6011)\d{12}$)|(^(65)\d{14}$)
Description
Discover Credit Card matching. International safe, no overlap
Matches
6011000000000004
Non-Matches
4508750000000009
Author Rating: Not yet rated. brad
Title Test Details AMEX Credit Card
Expression
(^3[47])((\d{11}$)|(\d{13}$))
Description
AMEX Credit Card match. International safe
Matches
340000000000009
Non-Matches
4508750000000009
Author Rating: Not yet rated. brad
Title Test Details Solo Credit card
Expression
(^(6334)[5-9](\d{11}$|\d{13,14}$)) |(^(6767)(\d{12}$|\d{14,15}$))
Description
Solo Credit Card match. International safe.
Matches
6334500000000003
Non-Matches
3528000000000007
Author Rating: Not yet rated. brad
Title Test Details Switch Credit Card
Expression
(^(49030)[2-9](\d{10}$|\d{12,13}$)) |(^(49033)[5-9](\d{10}$|\d{12,13}$)) |(^(49110)[1-2](\d{10}$|\d{12,13}$)) |(^(49117)[4-9](\d{10}$|\d{12,13}$)) |(^(49118)[0-2](\d{10}$|\d{12,13}$)) |(^(4936)(\d{12}$|\d{14,15}$)) |(^(564182)(\d{11}$|\d{13,14}$)) |(^(6333)[0-4](\d{11}$|\d{13,14}$)) |(^(6759)(\d{12}$|\d{14,15}$))
Description
Switch CC match. International safe.
Matches
4903020000000008
Non-Matches
4111111111111111
Author Rating: Not yet rated. brad
Title Test Details JCB credit card
Expression
(^(352)[8-9](\d{11}$|\d{12}$))|(^(35)[3-8](\d{12}$|\d{13}$))
Description
JCB cc match. International safe
Matches
3528000000000007
Non-Matches
4508750000000009
Author Rating: Not yet rated. brad
Title Test Details Dinner credit card
Expression
(^(30)[0-5]\d{11}$)|(^(36)\d{12}$)|(^(38[0-8])\d{11}$)
Description
Diners CC match. International safe
Matches
30000000000004
Non-Matches
3528000000000007
Author Rating: Not yet rated. brad
Title Test Details Cart Blance Credit Card
Expression
^(389)[0-9]{11}$
Description
Cart Blance Credit Card match. International safe
Matches
38900000000007
Non-Matches
30000000000004
Author Rating: Not yet rated. brad
Title Test Details EnRoute Credit Card
Expression
(^(2014)|^(2149))\d{11}$
Description
EnRoute Credit Card match. international safe.
Matches
201400000000009
Non-Matches
38900000000007
Author Rating: Not yet rated. brad
Title Test Details UK Debit Cards
Expression
(^(5[0678])\d{11,18}$)|(^(6[^05])\d{11,18}$)|(^(601)[^1]\d{9,16}$)|(^(6011)\d{9,11}$)|(^(6011)\d{13,16}$)|(^(65)\d{11,13}$)|(^(65)\d{15,18}$)|(^(49030)[2-9](\d{10}$|\d{12,13}$))|(^(49033)[5-9](\d{10}$|\d{12,13}$))|(^(49110)[1-2](\d{10}$|\d{12,13}$))|(^(49117)[4-9](\d{10}$|\d{12,13}$))|(^(49118)[0-2](\d{10}$|\d{12,13}$))|(^(4936)(\d{12}$|\d{14,15}$))
Description
Matches any of Solo, Switch or Maestro. International safe. Will not match on Discover, Visa or Mastercard. For example; Most recommendations for matching Visa are that they start with "4". If outside the US, this are incomplete on will falsly ID most Switch cards as Visa.
Matches
6334500000000003
Non-Matches
6011000000000004
Author Rating: Not yet rated. brad
   Displaying page 1 of 1 pages; Items 1 to 12

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials