title: PHP parser ASP page
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7515634/php-parser-asp-page">PHP : Parser asp page</a>  </p>
  </blockquote>
  
  
  
  <p>I have this tag into asp page </p>
  
  <pre><code>&lt;a class='Lp' href="javascript:prodotto('Prodotto.asp?C=3')"&gt;AMARETTI VICENZI GR. 200&lt;/a&gt;
  </code></pre>
  
  <p>how can i parser this asp page for to have the text <strong>AMARETTI VICENZI GR. 200</strong> ?</p>
  
  <p>This is the code that I use but don't work :</p>
  
  <pre><code>&lt;?php
  $page = file_get_contents('http://www.prontospesa.it/Home/prodotti.asp?c=12'); 
  preg_match_all('#&lt;a href="(.*?)" class="Lp"&gt;(.*?)&lt;/a&gt;#is', $page, $matches); 
  
  $count = count($matches[1]); 
  for($i = 0; $i &lt; $count; $i++){ 
      echo $matches[2][$i];  
  } 
  ?&gt; 
  </code></pre>