View Single Post
Old 02-23-2014, 05:00 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
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"
Jellby is offline   Reply With Quote