How about this?
\s*line-height:\s*1(\.[0123]\d*)?(em)?\s*;
"line-height:" with any number of possible preceding spaces and any number of spaces after,
a "1",
possibly, a period, a 0, 1, 2 or 3, and any number of additional digits,
possibly, "em",
a semicolon preceded with any number of possible spaces.
That should catch "1em", "1.1333333", "1.2em", etc., but not not "1.5em" or "0"
|