A C# regex question: retrieve Google search results -


I want to store Google search results (both title and link) in database. HTML code has similar search results:

   
THETITLE

and each page has 10 results, can someone show me how to recover TheURL and THETITLE ?

Thanks a lot!

You should give a try The correct way to read HTML parser is.

But , if you want to try for your own risk:

  & lt; H3 square = r> & Lt; A. *? Href = "(? & Lt; url & gt; [^"] *) ". *? & Gt; (title?; & Gt; *?) & Lt; / a & gt; & lt; /  
  • You have problems with the following: Small HTML changes
  • So, good luck!


    Comments

    Popular posts from this blog

    sql - dynamically varied number of conditions in the 'where' statement using LINQ -

    asp.net mvc - Dynamically Generated Ajax.BeginForm -

    Debug on symbian -