Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
x
Latex Chemical Molecule Identifier
Open Workspace
Python
Match
Created 2017-04-11 18:55
0
Regular Expression
r"
(?:
[
\(\)
eA
-
Z
]
[
a
-
z
]
*
(?:
_
\{
?
?
\d
*
\}
?
(?:
(?:
_
\d
)?
)*
)?
)+(?:
\^\{
?
?
\d
*
[
\+
-
]
?
\}
?
)?
"
g
Description
Updated: Identifies chemical formulae written with latex
Submitted by
Anonymous