Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\d+)\s+((?:[A-Za-zA-Z0-9]{0,3})+)\s+((?:[A-Za-z0-9\)\(\]\:\/<>\[\"\.\,\+\'\-]{2,} ?)+)\s+(\d{2,7}-\d{2}-\d)
/
g

Description

grab phase/chem formula/chem name/CAS

Submitted by anonymous - 8 years ago