Results 1 to 10 of 39
Hybrid View
-
4th Jul 2010, 02:22 PM #1Respected Developer
Never use regex for parsing markup. Download SharpLeech and add a reference to the Engine dll in your project. Then add these using's in your code:
PHP Code:using Hyperz.SharpLeech.Engine.Html;
using Hyperz.SharpLeech.Engine.Net;
PHP Code:var html = new HtmlDocument();
// load the html
html.LoadHtml("<div class=\"example\">foo</div>");
// use XPath to select the div
var node = html.DocumentNode.SelectSingleNode("//div[@class='example']");
var divContent = HttpUtility.HtmlDecode(node.InnerText);
Hyperz Reviewed by Hyperz on . Extracting data from a string I've extract this from a webpage and stored in a string. ---------------------------------------------------------------------------- ---------------------- <tr height="25"> <td nowrap class="odd" align="center"><img src="/forums/images/icon_topic_new.gif" width=14 height=14 alt='New Topic' border=0></td> <td nowrap class="odd" align="center"> </td> Rating: 5
-
5th Jul 2010, 03:36 PM #2Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgCurrent projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
extracting data from diffrent site
By zebono2 in forum Web Development AreaReplies: 1Last Post: 28th Jul 2012, 06:22 AM -
C++ string search help needed
By googleplus in forum Web Development AreaReplies: 0Last Post: 12th May 2012, 04:42 PM -
How to recover deleted or lost data, file, photo on Mac with Data Recovery software
By Jack20126 in forum General DiscussionReplies: 0Last Post: 20th Dec 2011, 03:37 AM -
php string - heredoc syntax
By desiboy in forum Web Development AreaReplies: 3Last Post: 16th Nov 2010, 05:15 PM -
[c#] Get String In between strings
By jayfella in forum Web Development AreaReplies: 3Last Post: 16th Jun 2010, 11:23 PM
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...