I need a regex to extract all the stylesheets (<link>
tags) from a html document.
Currently i have preg_match_all('/<link([^>]*?)>/i',...
, and that regex extracts the stylesheets... that's fine.
But, I need to exclude the styles wrapped in IEs conditional tags <!--[if IE...]>bla bla<![endif]-->
...
Any tips on how to do that?