| 
	
 | 
 Posted by kevinC on 06/18/06 11:26 
Hello, 
 
I'm trying to parse out the properties of a class definition from a css 
file and am running into issues trying to write the reg. expression: 
 
h1 { 
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	font-size: 16px; 
	font-weight: bold; 
	color: #003399; 
} 
.... 
 
I need the results in: 
array[i][0] = "h1" 
array[i][1] = " 
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	font-size: 16px; 
	font-weight: bold; 
	color: #003399;" 
 
Any idea? I tried looking online for an example and can't find anything 
that works with php's preg_match_all() function... 
 
Thank you in advance! 
 
-Kevin
 
  
Navigation:
[Reply to this message] 
 |