ReadonlycaseWhether to ignore case when matching the unit.
ReadonlyformatThe format of the string to parse.
ReadonlymaxThe maximum number of decimal places to allow.
ReadonlyunitsThe names of the units to parse.
Extract the value and unit from the given string.
The string to parse.
An object containing the value and unit, or null if the string does not match the format.
This class helps to extract a value and a unit from a string, by the given format.