Datatypes › Chemistry

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
83/100 · missing: 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]|[a-z])?[₁₂₃₄₅₆₇₈₉₀.]*(?:\)?(?:[¹²³⁴⁵⁶⁷⁸⁹⁰]+[⁺⁻]?|[⁺⁻])[\])|,₁₂₃₄₅₆₇₈₉₀]*|[\])|,][\])|,₁₂₃₄₅₆₇₈₉₀]*)?(?:·\(?[-0-9.]*n?\)?)?)+$

Python re syntax.

Test a value

Examples

ValueDescription
H₂O water

Sources

Use this record