View Single Post
Old 02-24-2014, 10:58 AM   #29
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Quote:
Originally Posted by Jellby View Post
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)

Last edited by Perkin; 02-24-2014 at 11:01 AM.
Perkin is offline   Reply With Quote