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:
Tim Claason
|
Source |
|
Your Rating |
|
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