This documentation is archived and is not being maintained.

Match Members

Match overview

Public Properties

public propertyCaptures (inherited from Group)

Supported by the .NET Compact Framework.

Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the RegexOptions.RightToLeft option). The collection may have zero or more items.
public propertystatic (Shared in Visual Basic)Empty

Supported by the .NET Compact Framework.

Gets the empty group. All failed matches return this empty match.
public propertyGroups

Supported by the .NET Compact Framework.

Gets a collection of groups matched by the regular expression.
public propertyIndex (inherited from Capture)

Supported by the .NET Compact Framework.

The position in the original string where the first character of the captured substring was found.
public propertyLength (inherited from Capture)

Supported by the .NET Compact Framework.

The length of the captured substring.
public propertySuccess (inherited from Group)

Supported by the .NET Compact Framework.

Gets a value indicating whether the match is successful.
public propertyValue (inherited from Capture)

Supported by the .NET Compact Framework.

Gets the captured substring from the input string.

Public Methods

public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodNextMatch

Supported by the .NET Compact Framework.

Returns a new Match with the results for the next match, starting at the position at which the last match ended (at the character beyond the last matched character).
public methodResult

Supported by the .NET Compact Framework.

Returns the expansion of the passed replacement pattern. For example, if the replacement pattern is $1$2, Result returns the concatenation of Groups[1].Value and Groups[2].Value (Groups(1).Value and Groups(2).Value in Visual Basic).
public methodstatic (Shared in Visual Basic)Synchronized

Supported by the .NET Compact Framework.

Returns a Match instance equivalent to the one supplied that is suitable to share between multiple threads.
public methodToString (inherited from Capture)

Supported by the .NET Compact Framework.

Overridden. Gets the captured substring from the input string.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Match Class | System.Text.RegularExpressions Namespace

Show: