Regular Expression Examples

This section contains code examples that illustrate the use of regular expressions in common applications.


The System.Web.RegularExpressions namespace contains a number of regular expression objects that implement predefined regular expression patterns for parsing strings from HTML, XML, and ASP.NET documents. For example, the TagRegex class identifies start tags in a string and the CommentRegex class identifies ASP.NET comments in a string.

In This Section