Title |
Test
Find
CAS Number
|
Expression |
\b[1-9]{1}[0-9]{1,5}-\d{2}-\d\b |
Description |
This is a more robust regex for matching Chemical Abstract Service (CAS) Numbers. This distinguishes between CAS numbers and other identifiers (e.g. EC number). |
Matches |
50-00-0 |
Non-Matches |
200-001-8 |
Author |
Rating:
Jarlath
|
Source |
|
Your Rating |
|
Title: Only matches 6 digits in first section
Name: Scott
Date: 5/31/2018 1:43:28 PM
Comment:
CAS numbers now allow 10 total digits, so the updated RegEx is \b[1-9]{1}[0-9]{1,6}-\d{2}-\d\b