I\'m creating a CSS editor and am trying to create a regular expression that can get data from a CSS document. This regex works if I have one property but I can\'t get it to
Do not use your own regex for parsing CSS. Why reinvent the wheel while there is code waiting for you, ready to use and (hopefully) bug-free?
There are two generally available classes that can parse CSS for you:
HTML_CSS PEAR package at pear.php.net
and
CSS Parser class at PHPCLasses:
http://www.phpclasses.org/browse/package/1289.html