title: Need a regex solution to scrape
body: <p>I am trying to scrape stack overflow's php newest questions on the basis of 45 questions per page.I am using <strong>Simple_html_dom</strong> for the parsing. I am almost done but i couldn't scrape the values for the <strong>no of answers</strong> given to a question as they are using two seperate div tags. Below is the code link to check for and i am also attaching a screenshot link of what the executed code gives.</p>
  <pre><code>include_once('simple_html_dom.php');
  function httpGet($url)
  {
      $ch = curl_init();
      curl_setopt($ch,CURLOPT_URL,$url);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
      $output=curl_exec($ch);
      curl_close($ch);
      return $output;
  }
  $count=45;
  $url ='http://stackoverflow.com/questions/tagged/php?page=1&amp;sort=newest&amp;pagesize='.$count;
  $parse = httpGet($url);
  $html = str_get_html($parse);
  
  for($i=0;$i&lt;=$count;$i++){
  
      $qu=$html-&gt;find('a[class=question-hyperlink]', $i)-&gt;href;
      $que='https://stackoverflow.com'.$qu;
      $question=$html-&gt;find('a[class=question-hyperlink]', $i)-&gt;plaintext;
      $link='&lt;a href=&quot;'.$que.'&quot;&gt;'.$question.'&lt;/a&gt;';
      $time=$html-&gt;find('span[class=relativetime]',$i)-&gt;plaintext;
      $views=$html-&gt;find('.views',$i)-&gt;plaintext;
      $vote=$html-&gt;find('span[class=vote-count-post]',$i)-&gt;plaintext;
      $stat1=$html-&gt;find('div[class=status answered]',$i)-&gt;plaintext;
      echo'&lt;h3&gt;'.$link.'&lt;/h3&gt;&amp;nbsp&amp;nbspAsked:&amp;nbsp'.$time.'Vote:'.$vote.'View:'.$views.'Answers: '.'&lt;br&gt;&lt;br&gt;';
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Y1k0a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y1k0a.png" alt="Scraped image" /></a></p>
  <p>In the image you can see Answers: &quot;Here is where i wanna get the number of answers a question got&quot;
  Looking for solution with simple_html_dom, although regex answers will also work</p>
  <p>Thanks</p>