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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find AMEX, Discover, MC, Visa
Expression
^((4(\d{12}|\d{15}))|(5\d{15})|(6011\d{12})|(3(4|7)\d{13}))$
Description
Matches Visa, American Express, Discover, and Mastercard only.
Matches
4111111111111 | 4111111111111111 | 5111111111111111 | 6011111111111111 | 341111111111111 | 371111111111111
Non-Matches
411111111111 | 51111111111111111 | 6111111111111111 | 321111111111111 | 381111111111111
Author Rating: The rating for this expression. Tony Fugere
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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