maddoxnm
10-09-2002, 09:32 PM
Can someone please help me figure out howto get this in the correct formatting for preg_match_all. I have tryed various times but it grabs the first result, then just grabs everything below the result. Another time it grabbed all the results but stored everything in the first array slot, instead of multiple ones...
Here is the html I'm trying to grab:
<li xmlns=""><a href="http://www.searchability.com/" class="clsResultTitle">SearchAbility - Guides to Specialized Search Engines</a><table border="0" cellpadding="0" cellspacing="0" width="560"><tr><td>Find a list of guides to thousands of search engines covering hundreds of subjects. Browse by alphabetical listings and read the company profile.<br><span class="clsResultURL"><i>www.searchability.com</i></span><br><img src="/images/spacer.gif" height="8" width="1"><br></td></tr></table></li>
I want to grab the URL from the first A-Href, the Name of the Site from the first Href, and then the description. So if we can stop it at that first break after the description it would be fine.
Here is the html I'm trying to grab:
<li xmlns=""><a href="http://www.searchability.com/" class="clsResultTitle">SearchAbility - Guides to Specialized Search Engines</a><table border="0" cellpadding="0" cellspacing="0" width="560"><tr><td>Find a list of guides to thousands of search engines covering hundreds of subjects. Browse by alphabetical listings and read the company profile.<br><span class="clsResultURL"><i>www.searchability.com</i></span><br><img src="/images/spacer.gif" height="8" width="1"><br></td></tr></table></li>
I want to grab the URL from the first A-Href, the Name of the Site from the first Href, and then the description. So if we can stop it at that first break after the description it would be fine.