View Single Post
Old 02-23-2014, 07:55 AM   #12
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,558
Karma: 19620479
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
i know about the final element rule, but my test case examples are all from actual book syntax

your new code still skips this case
line-height:1.3
That's because that line is wrong, it's missing the semicolon. If it's in a real book, it would fail in ADE I guess.

Quote:
Originally Posted by Doitsu View Post
You're right. I corrected my initial post. The following expression finds all test case strings:

line-height:\s*1\.\d+[em;]*
It would also find 1.5mm

How about just ending with ";?" ?

\s*line-height:\s*1(\.[0123]\d*)?(em)?\s*;?
Jellby is offline   Reply With Quote