Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 29th, 2004, 10:17 PM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JAtkinson
Default HTML text search

Im trying to write a program that takes specific information out of HTML code from a webpage. Ive been able to "scrape" the website to get the HTML from doing this:

Code:
Public Sub DownloadFile() 

        Dim wClient As New WebClient 
        Dim bytes() As Byte 
        bytes = wClient.DownloadData("http://www.link.com") 
        richtextbox1.Text = System.Text.Encoding.Default.GetString(bytes) 

    End Sub
Suppose there is a string of text in the HTML that is "ABCD12345EFG" and I want to locate that text and store it in a string variable. I need to know how to use the regular expressions to find and store the desired text and display it into a textbox. I am very new to programming and using regular expressions.

Thanks for any help,
James







Similar Threads
Thread Thread Starter Forum Replies Last Post
New text search doesn't preselect search string planoie Visual Studio 2005 0 July 23rd, 2007 06:47 AM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM
search in HTML Shelly HTML Code Clinic 5 June 14th, 2004 06:51 PM
Ch3, P.76 - text.html/text.php not working Hostile BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 May 15th, 2004 11:09 AM
search in an HTML Page Shelly Javascript How-To 1 August 12th, 2003 06:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.