Ira_Hayes 4 Posted December 7, 2011 Report Share Posted December 7, 2011 <td valign="top"> <a name="HarryMargolis"></a> <h2 class="attorneyHeader">Harry S. Margolis </h2> <a href="referral.asp?PageFrom=FirmProfile&User_ID=5001&AttorneyEmail=hsm@margolis.com&ContactSpecificAttorney=yes">Contact This Attorney Now</a><br> 535 Boylston Street 8th Floor<br> Boston, MA 02116<br> Phone: (617) 267-9700 <br> Fax: (617) 267-3166<br> <a href="mailto:hsm@margolis.com">hsm@margolis.com</a><br> <a href="http://www.margolis.com" target="_blank">www.margolis.com</a><br> </td> That's the code. I am using a pagescrape to get the phone number. There are a variable number of these boxes on the site, and it grabs the phone number from all of them. I only need the first one. Image shows code and results. http://i.imgur.com/faVNo.png Site in question is here http://specialneedsanswers.com/professionals/FirmProfile.asp?FirmID=5001 Quote Link to post Share on other sites
Ira_Hayes 4 Posted December 7, 2011 Author Report Share Posted December 7, 2011 I got what I wanted by using "sub string" to trim off the numbers I didn't want. Is this the best way? Quote Link to post Share on other sites
Ira_Hayes 4 Posted December 7, 2011 Author Report Share Posted December 7, 2011 Thanks. Good code. Quote Link to post Share on other sites
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.