Regular Expressions 101

Library entries

CSS Length Units

Vote

3

Regular Expression
pcre

/
^(-?\d+(em|ex|%|px|cm|mm|in|pt|pc|ch|rem|vh|vw|vmin|vmax)|0)$
/
i

Description

Loading markdown...
Submitted by Sander Backus - 5 years ago