Regular Expressions 101

Community Patterns

Community Library Entry

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 - 3 years ago