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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([30|36|38]{2})([0-9]{12})$
Description
Validate against any diner's club card. All diner club cards start with 30,36, or 38, followed by 12 other numbers.
Matches
30125212365212 | 36125212365212 | 38125212365212
Non-Matches
301252123652121 | 40256631125452 | 361251254125212
Author Rating: The rating for this expression. Jeff Johns
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

Title: ME
Name: ME
Date: 7/17/2015 3:29:55 PM
Comment:
83123456789012 is valid right regexp ^3([068]{1})([0-9]{12})$


Title: WTF
Name: WTF
Date: 8/26/2011 8:04:38 PM
Comment:
/^[a-z\d][a-z\d\-]{0,31}[a-z\d]$/i


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