View Single Post
Old 02-23-2014, 05:30 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
sounds great in theory but is not finding all the matches in my simple test file ?
e.g. it is skipping this line :
line-height:1.3
i think it needs a tweak to allow for no trailing semicolon ?

for testing, I created a blank stylesheet & put in

line-height:1.2;
line-height:1.3
line-height:1.2em;
line-height:1.2em
line-height: 1.9;
line-height: 1.4
line-height: 1.2em;
line-height: 1.2em
line-height:1.9;
line-height:1.4
line-height:1.2em;
line-height:1.2em

also your code works for the same reason as my cheat, it looks for a final mandated whitespace. if I remove that from your code then the find picks out only the bold part of
line-height:1.2em

the hard bit is getting the optional components to be included in what is captured, and allowing the final bit of the target to be an optional string

Last edited by cybmole; 02-23-2014 at 05:34 AM.
cybmole is offline   Reply With Quote