次の方法で共有


System.Text.RegularExpressions Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The System.Text.RegularExpressions namespace contains classes that provide access to the .NET Framework regular expression engine. The namespace provides regular expression functionality that can be used from any platform or language that runs within the Microsoft .NET Framework.

Classes

  Class Description
Public class Capture Represents the results from a single subexpression capture.
Public class CaptureCollection Represents the set of captures made by a single capturing group.
Public class Group Represents the results from a single capturing group.
Public class GroupCollection Represents a collection of captured groups in a single match.
Public class Match Represents the results from a single regular expression match.
Public class MatchCollection Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string.
Public class Regex Represents an immutable regular expression.

Delegates

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

Enumerations

  Enumeration Description
Public enumeration RegexOptions Provides enumerated values to use to set regular expression options.