Datatypes

Molecular Formula

ID molformula

DatatypeNot PII

Molecular formulae indicate the simple numbers of each type of atom in a molecule of a molecular substance.

Categories
Chemistry
Countries
Global (not tied to a country)
Languages
Common to most languages
AutoType benchmark
chemical
Schema.org
molecularFormula
Wikidata
P274
Quality
73/100 · missing: anchored regexp, second example, negative example, translation
Metacrafter rules
1 rule (1 by field name, 0 by value)
Supported by tools
Auto-Type, metacrafter

Regular expression

([αβγδφωλμπ]-)?([([]*[A-Z☐][ub]?[a-z]?[₁₂₃₄₅₆₇₈₉₀.]*(\)?[¹²³⁴⁵⁶⁷⁸⁹⁰]*[⁺⁻]?)?[\])|,₁₂₃₄₅₆₇₈₉₀]*(·\(?[-0-9.]*n?\)?)?)+

Python re syntax. Not anchored: it can match inside longer text.

Examples

ValueDescription
H₂Owater

Sources

Use this record