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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find DEA Number
Expression
^\S{2}\d{7}$
Description
A DEA number is a number assigned to a health care provider (such as a medical practitioner, dentist, or veterinarian) by the U.S. Drug Enforcement Administration. This regex validates correct format
Matches
AB1234567
Non-Matches
AB 1234567, AB12345678, 12345678
Author Rating: The rating for this expression. Tim Claason
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: DEA number
Name: Shagie
Date: 6/28/2017 8:38:45 PM
Comment:
if you want to mark the DEA pattern event if it's not on the beginning of the line, you need to change it to \b[a-zA-Z]{2}\d{7}$ and the two letters for the first


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:35:36 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:35:25 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:19:55 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:17:43 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:16:13 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


Title: DEA Number
Name: Priscilla
Date: 6/30/2015 4:16:03 PM
Comment:
^[a-zA-Z]{2}\d{7}$ I like this one. Could get more specific, but don't want to update code when they add another allowed first character. For our purposes, any alpha character is acceptable


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