Quote:
Originally Posted by cybmole
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
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*;?