System.Text.RegularExpressions.Regex Class
Information   Base Types   Related Resources

Represents an immutable regular expression.

  • Namespace: System.Text.RegularExpressions
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.1.4322
  • Assembly: System.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (15)Discussions (429)MembersRotorChanges
    Articles

    Page: 1
    A C# Web Spider written as a Web Service
    C#Today
    A Web Spider is a program that is used to navigate sites, follow links and collect various information. It is sometimes called a Web Robot. In this article. ST Tan & Aldy Karna discuss the subject, and show how a Web Spider can be written in C#.
    Formatting with Regular Expressions
    4Guys from Rolla
    If you're familiar with regular expressions, you know that they can be used for pattern matching and replacement in strings. Regular expressions true power lies in its ability to search for certain patterns and replace these patterns. For example, say that you have the contents of an HTML page in a string, and you want to find any occurrence of a particular word and highlight it in the user's browser. This can be done, rather simply, with regular expressions.
    HTML Table Of Contents Generator
    The Code Project
    A C# program which takes a HTML file as input and outputs a new file with a table of contents embedded.
    Masked Edit Control written in C# that uses Regular Expressions
    C# Help
    We programmed a masked textbox control with C# that will convert the mask into a regular expression for each character in the field. It is designed to accept a user defined mask or a regular expression that defines each character in the field. If you pass it the mask as a string using the characters listed below, it will build the regular expression for you. It then loads the regular expression into an array which is used to validate and control the behavior of the field. There is an error provider message and a tooltip associated with the control.
    Regular Expressions in C#
    C# Help
    Standard I/O: Console Appplications in .NET, or Teaching a New Dog Old Tricks
    MSDN
    When you write console apps that take advantage of pipelines, you get the combined power of lots of small, simple apps. While each application in the pipe is fairly simple, the result of their interaction can be a relatively complex task.
    Static-Site Search Engine with ASP.NET/C#
    The Code Project
    Simple, free, easy to install Search page in C#
    The best regular expression on the Internet
    STANDARDIO.ORG
    Recently I decided I wanted to build an Internet spider. There was no client paying for it, no boss asking for it. It’s just something I’ve always wanted to do. Thanks to the .NET Framework objects System.Net.HttpWebRequest and System.Net.HttpWebResponse, this is relatively easy. The hardest part I ran into while writing the code was scanning for HREF’s on a page. I thought this might be the easiest part when I started, but in terms of lines of code per hour, this was by far the most difficult portion of my spider. In this scenario a regular expression is needed to scan the HTML the spider has downloaded for more HREF’s so it can continue crawling the web.
    The Essence Pattern in C#
    The Code Project
    An implementation of the Essence Pattern in C#
    Turn Your Log Files into Searchable Data Using Regex and the XML Classes
    MSDN
    Discover how to use the built-in regular expression functionality in the .NET Framework to convert delimited log files into XML for later processing.
    URL Rewriting in ASP.NET
    MSDN
    Scott Mitchell shows how you can dynamically intercept an incoming Web request and automatically redirect it to a different URL.
    Useful Hints/Tips for TextBox
    The Code Project
    This article is about validation ion TextBox control. It will also show how you can use ErrorProvider and ToolTip when you enter false values in a TextBox.
    Using MapQuest Maps in your ASP.NET Application
    DotNetJunkies
    A book is great, but a picture is worth 1,000 words right? So stop giving your address and expecting people to find you ... draw them a map! Better yet, have MapQuest draw a map for you. You'll learn how to add a map to your ASP.NET application in this article.
    Using Regular Expressions
    4Guys from Rolla
    Regular expressions are a neat and efficient way to perform extremely powerful string pattern matching and replacing. For example, imagine that you had an HTML document and you wanted to pick through it to retrieve all the text between any bold tags (between <b> and </b>). Although this can be done with String class methods such as IndexOf and Substring, it would involve an unnecessarily complex loop with some ugly code. Instead, a relatively simple regular expression could be used.
    Working with Web Data in C# (Screen Scraping)
    C#Today
    Think of the World Wide Web as a giant database management system in which the web sites are the databases and the web pages are the database tables. Now think about how useful it would be to gather data from those tables in a form that could be processed, queried, and combined with other, otherwise unrelated, data in new combinationsusing C# and the .NET framework. In this article, Tony Loton looks at how to: drive HTTP GET and POST requests to web sites using the WebRequest and Stream classes, capture the responses via the WebResponse class, and pick out specific nuggets of information from a web page using regular expressions and the Regex class. The end result is a small but useful engine and a demonstration application, that goes a long way towards allowing data to be selected from web pages as though selecting from relational database tables, using SQL syntax.
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification