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 2
Title Test Details CVV2/CVC2/CID
Expression
^(?!000)\d{3,4}$
Description
This is a bit shorter than the first CVV2/CVC2/CID regex found on the site. It matches any 3 or 4 character number. Now featuring change per suggestion in comments. Thanks!
Matches
123 | 1234
Non-Matches
1 | 12 | 12345
Author Rating: The rating for this expression. Tony Fugere
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 2

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