Quote:
Originally Posted by Jellby
But it will also match any other "line-height", won't it? I thought that was not the idea.
|
On re-reading the OP I think you're right, the desired effect is any line-height that is between 1 and 2 em's
So a further regex fully expanded which matches each line (and a few further cases) would be
Code:
line-height\s*:\s*1(\.\d+)?\s*(em)?\s*;?\s*
or just the entry (not line-break as well)
Code:
line-height\s*:\s*1(\.\d+)?\s*(em)?\s*;?(?=\n|\r)