papaface Posted November 26, 2010 Share Posted November 26, 2010 Hey I am wondering if someone could please give me the regex to retrieve the <div class="category-thumb"> <a href="/categories/php" onClick="pageTracker._trackEvent('Coding Tutorials','Click Here');"><img src="http://www.domain.com/img/phpcode.jpg" alt="PHP" /></a> <h6><a href="/categories/php" onClick="pageTracker._trackEvent('Coding Tutorials','Click Here');">PHP</a></h6><span>5 tutorials</span></div> I am trying to obtain this part of the block: >PHP</a> There are mutliple blocks like this on the page so I am building up an array with preg_match_all($expr,$this->html,$info,PREG_SET_ORDER); Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
papaface Posted November 26, 2010 Author Share Posted November 26, 2010 When I say >PHP</a> I mean I want the word PHP Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.