Regular Expressions 101

Community Patterns

1...34567...641

molecule elements parser

0

Regular Expression
PCRE (PHP <7.3)

/
[A-Z][a-z]?\d*|\(.*?\)\d+
/
g

Description

allows to get the sub elements of a molecule symbol and their number.

Submitted by Quettle - 2 years ago