title: Is it possible to scrape data from html element with specific class
body: <p>I worked out various regex to scrape the data.</p>
  
  <p>Here I can scrape image from the page source:</p>
  
  <p>Here I scraped data from table <code>td</code></p>
  
  <pre><code>    &lt;?php
  
      $s = file_get_contents('http://www.altassets.net/altassets-events'); 
      $matches = array(); 
      preg_match_all("/&lt;tr&gt;(.*)&lt;\/tr&gt;/sU", $s, $matches); 
      $trs = $matches[1]; $td_matches = array(); 
      foreach ($trs as $tr) { $tdmatch = array(); 
      preg_match_all("/&lt;td&gt;(.*)&lt;\/td&gt;/sU", $tr, $tdmatch); 
      $td_matches[] = $tdmatch[1]; } var_dump($td_matches); 
      //print_r($td_matches); 
  ?&gt;
  </code></pre>
  
  <p>similarly image and titles too.</p>
  
  <p>But how to scrape data from <code>&lt;p&gt;</code> tag with specific class name?</p>
  
  <pre><code>&lt;p class="review_comment ieSucks" itemprop="description" lang="en"&gt; Some text &lt;/p&gt;
  </code></pre>
  
  <p>Consider this page, </p>
  
  <p><a href="http://www.yelp.com/biz/fontanas-italian-restaurant-cupertino" rel="nofollow">http://www.yelp.com/biz/fontanas-italian-restaurant-cupertino</a></p>
  
  <p>this is just example, just want to know procedure. class name and tag name can be changed</p>
  
  <p>I want to scrape review and it's Rate value from the page</p>