Regular Expressions 101

Library entries

Validate CSS Units

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - 3 years ago