Test, validate and match regular expressions
This regex matches dimension values with an optional prefix (h or l), a single digit, and an optional unit (l, m, or cm). The negative lookahead ensures no digit follows the unit. With global and multiline flags, it can extract multiple dimension specifications from text or documents containing measurements.