The EndTagRegex class provides a regular expression to parse an end tag (for example, </span>).

Note:

The System.Web.RegularExpressions classes are meant to be used by the .NET Framework to parse ASP.NET pages and are not always practical for general applications. For example, many of these classes match only the beginning of a string.