This documentation is archived and is not being maintained.

Match Members

Represents the results from a single regular expression match.

The following tables list the members exposed by the Match type.

  Name Description
Public property Supported by the .NET Compact Framework Captures  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.(Inherited from Group.)
Public property Static Supported by the .NET Compact Framework Empty Gets the empty group. All failed matches return this empty match.
Public property Supported by the .NET Compact Framework Groups Gets a collection of groups matched by the regular expression.
Public property Supported by the .NET Compact Framework Index  The position in the original string where the first character of the captured substring was found.(Inherited from Capture.)
Public property Supported by the .NET Compact Framework Length  The length of the captured substring.(Inherited from Capture.)
Public property Supported by the .NET Compact Framework Success  Gets a value indicating whether the match is successful.(Inherited from Group.)
Public property Supported by the .NET Compact Framework Value  Gets the captured substring from the input string.(Inherited from Capture.)
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework NextMatch 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 method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Result 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 method Static Supported by the .NET Compact Framework Synchronized Overloaded.  
Public method Supported by the .NET Compact Framework ToString  Gets the captured substring from the input string. (Inherited from Capture.)
Top

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
Show: