The regular expression component used in ASP.NET is mainly supported by the System.Text.RegularExpressions namespace of .NET framework. The System.Text.RegularExpressions namespace provides access to the regular expression functionality of the .NET framework regular expression engine. Besides, the System.Configuration.RegexStringValidator Class of .NET framework can also be used to verify whether a particular string conforms to a regular expression pattern.
System.Text.RegularExpressions Namespace
The two key features of RegularExpressions namespace are the regular expression engine, and the results.
Classes
Capture
Represents the results from a single successful subexpression capture.
CaptureCollection
Represents the set of captures made by a single capturing group.
Group
Represents the results from a single capturing group.
GroupCollection
Returns the set of captured groups in a single match.
Match
Represents the results from a single regular expression match.
MatchCollection
Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string.
Regex
Represents an immutable regular expression.
RegexCompilationInfo
Provides information about a regular expression that is used to compile a regular expression to a stand-alone assembly.
RegexMatchTimeoutException
The exception that is thrown when the execution time of a regular expression pattern-matching method exceeds its time-out interval.
RegexRunner
The RegexRunner class is the base class for compiled regular expressions.
RegexRunnerFactory
Creates a RegexRunner class for a compiled regular expression.
Enums
RegexOptions
Provides enumerated values to use to set regular expression options.
Delegates
MatchEvaluator
Represents the method that is called each time a regular expression match is found during a Replace method operation.