I am attempting to capture all CSS files in the HTML generated from a Wordpress site.
So far I have the following
preg_match_all('/"([^"]+?\.css)"/', $op, $css);
This gets me all *.css URL's that have no querystring, but as I am sure you are aware, WP has a funny way of appending a querystring to them... so the 20+ rest of the CSS files are not captured.
How can I mod this to grab them all?
Dom parsing is not an option as WP very rarely produces valid html...