System.Text.RegularExpressions Namespace (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides regular expression functionality that may be used from any platform or language that runs within .NET. In addition to the types contained in this namespace, the RegexStringValidator class enables you to determine whether a particular string conforms to a regular expression pattern.

Classes

Capture Represents the results from a single successful subexpression capture.
CaptureCollection Represents the set of captures made by a single capturing group. The collection is immutable (read-only) and has no public constructor.
GeneratedRegexAttribute Instructs the System.Text.RegularExpressions source generator to generate an implementation of the specified regular expression.
Group Represents the results from a single capturing group.
GroupCollection Returns the set of captured groups in a single match. The collection is immutable (read-only) and has no public constructor.
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. The collection is immutable (read-only) and has no public constructor. The Matches(String) method returns a MatchCollection object.
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.
RegexParseException An exception as a result of a parse error in a regular expression, with detailed information in the Error and Offset properties.
RegexRunner The RegexRunner class is the base class for compiled regular expressions.
RegexRunnerFactory Creates a RegexRunner class for a compiled regular expression.

Structs

Regex.ValueMatchEnumerator Represents an enumerator containing the set of successful matches found by iteratively applying a regular expression pattern to the input span.
Regex.ValueSplitEnumerator Represents an enumerator containing the set of splits around successful matches found by iteratively applying a regular expression pattern to the input span.
ValueMatch Represents the results from a single regular expression match.

Enums

Delegates

MatchEvaluator Represents the method that is called each time a regular expression match is found during a Replace method operation.

See also