title: PHP Regex HTML - Extract URL
body: <p>I am trying to extract multiple URLs from HTML file with regex.
  There are other URLs in the file, do the only pattern i have is "tableentries." and "" </p>
  
  <p>HTML code example:</p>
  
  <pre><code>&lt;tr class="tableentries2"&gt;
    &lt;td&gt;
      &lt;a href="http://example.com/all-files/files/00000000789/"&gt;Click Here&lt;/a&gt;
    &lt;/td&gt;
  </code></pre>
  
  <p>PHP I wrote:</p>
  
  <pre><code>$html = "value of the code above"
  if(preg_match_all('/&lt;td&gt;.*&lt;/td&gt;/', $html, $match)){
  foreach($match[0] as $x){
  
  echo $x . "&lt;br&gt;";
  
  }}
  </code></pre>