Regular Expressions 101

Library entries

Regex for Chemical Compounds

Vote

2

Regular Expression
python

"
([\w*-]*([\[(]([\[(]?[a-zA--ωΑ-Ωµ\-′,:]+\d?[+-]?[\])]?)+[\])\d+-]{1,})[\w*-]*)|(([A-z]+[a-z]*\d)+([A-z]+[a-z]*\d?)*)
"
g

Description

Loading markdown...
Submitted by Haiming Zhao - 5 years ago