Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(\d+) *?([A-Za-z]\w*)$
/
gm

Description

A chemichal species has a species name like O2 or N3 The coefficient is how many of such molecules (the number of front) 2 O2 === 2 is the species

Submitted by anonymous - a month ago