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 Discover Card
Expression
^((6011)((-|\s)?[0-9]{4}){3})$
Description
Validates Discover Card numbers starting with 6011 and allows for spaces and -'s.
Matches
6011-0000-0000-0000 | 6011000000000000 | 6011 0000 0000 0000
Non-Matches
Anything not starting with 6011
Author Rating: Not yet rated. RGardner
Title Test Details Mastercard
Expression
^((5[1-5])([0-9]{2})((-|\s)?[0-9]{4}){3})$
Description
Validates all Mastercard numbers starting with 51-55 with a total of 16 digits. Allows for spaces and -'s.
Matches
5144-0000-0000-0000 | 5343 0000 0000 0000 | 5400000000000000
Non-Matches
5600.... | 4100....
Author Rating: Not yet rated. RGardner
   Displaying page 1 of 1 pages; Items 1 to 2

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