title: Pulling links from list in php
body: <pre><code>&lt;li class="page_item page-item-6"&gt;&lt;a href="http://localhost/wordpress1006/?page_id=6"&gt;About us&lt;/a&gt;&lt;/li&gt; 
  &lt;li class="page_item page-item-12"&gt;&lt;a href="http://localhost/wordpress1006/?page_id=12"&gt;Contact&lt;/a&gt;&lt;/li&gt; 
  &lt;li class="page_item page-item-10"&gt;&lt;a href="http://localhost/wordpress1006/?page_id=10"&gt;Portfolio&lt;/a&gt;&lt;/li&gt; 
  &lt;li class="page_item page-item-8"&gt;&lt;a href="http://localhost/wordpress1006/?page_id=8"&gt;Services&lt;/a&gt;&lt;/li&gt; 
  </code></pre>
  
  <p>I need to pull links only from this list, I would use regular expressions but I'm too scared to try.
  So numbers will change at the end of page_item page-item-number</p>
  
  <p>what would you suggest me to do here?</p>
  
  <p>Thanks in advance</p>