title: What is the regex for php to get the href value in all stylesheet tags from HTML?
body: <p>What is a general way to grab all href tags using regex and preg_match_all to get the href value given the  tag is not always in order.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;link href="foo.css" rel="stylesheet" type="text/css"/&gt;
  &lt;link type="text/css" href="bar.css" rel="stylesheet"/&gt;
  &lt;link rel="stylesheet" type="text/css" href="bar1.css"/&gt;
  &lt;link type="text/css" href="bar2.css" rel="stylesheet"&gt;&lt;/link&gt;
  &lt;link href="path/foo.css" rel="stylesheet" type="text/css"/&gt;
  </code></pre>
  
  <p>Should result in :</p>
  
  <pre><code>Array(
  'foo.css',
  'bar.css',
  'bar1.css',
  'bar2.css',
  'path/foo.css',
  )
  </code></pre>