The semicolon is only optional if it's the final element in a style. Maybe this?
\s*line-height:\s*1(\.[0123]\d*)?(em)?\s*[;}]
and check "multiline", or whatever there is to include newlines in \s. This, however, will not work if you want to remove everything (you should not remove the } ). You could preprocess the file and first replace every } with ;}, now every rule should be ended by a semicolon (and there will possibly be two consecutive semicolons in some cases, which you could remove afterwards).
|