fixed regex to be leaner, and handle minified CSS