Module: ParseUtil

Defined in:
lib/oddb2xml/parse_compositions.rb

Overview

This file is shared since oddb2xml 2.0.0 (lib/oddb2xml/parse_compositions.rb) with oddb.org src/plugin/parse_compositions.rb

It allows an easy parsing of the column P Zusammensetzung of the swissmedic packages.xlsx file

Defined Under Namespace

Classes: ParseComposition, ParseSubstance

Constant Summary collapse

SCALE_P =
%r{pro\s+(?<scale>(?<qty>[\d.,]+)\s*(?<unit>[kcmuµn]?[glh]))}u