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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find CAS Registry Number
Expression
^[1-9][0-9]{1,6}\-[0-9]{2}\-[0-9]
Description
Other examples of this show there being upto 6 digits at the start however according to the official website, it should be 7 https://www.cas.org/content/chemical-substances/faqs
Matches
506-64-9 | 1234567-21-1
Non-Matches
506-64-19 | 12345678-21-1
Author Rating: Not yet rated. PJWhitfield
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

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