[solved] find within a string
Posted: Thu May 05, 2005 4:12 am
I suck at writing regual expressions so if some one call help that would great.
String looks like.
background: rgb(156, 123, 173)
url(/images/interface/side_bar_02.gif) repeat-x scroll 0%; font-family:
verdana,arial,sans-serif; color: rgb(156, 123, 173); line-height:
1.5em; -moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial; font-size: 0.8em;
I need to find font-size: 0.8em;
so I would like to do a search for 'font-size:' and the 'em;' part regardless what the number in the middle is set too.
this is client side as it is manipulting the css stylesheet.
Cheers
phpScott
String looks like.
background: rgb(156, 123, 173)
url(/images/interface/side_bar_02.gif) repeat-x scroll 0%; font-family:
verdana,arial,sans-serif; color: rgb(156, 123, 173); line-height:
1.5em; -moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial; font-size: 0.8em;
I need to find font-size: 0.8em;
so I would like to do a search for 'font-size:' and the 'em;' part regardless what the number in the middle is set too.
this is client side as it is manipulting the css stylesheet.
Cheers
phpScott