Table of Contents

Class Match

Namespace
System.Text.RegularExpressions
Assembly
System.Text.RegularExpressions.dll

Represents the results from a single regular expression match.

public class Match : Group
Inheritance
Match
Inherited Members
Extension Methods

Properties

Empty

Gets and empty match.

public static Match Empty { get; }

Property Value

Match

Groups

Gets a group collection.

public virtual GroupCollection Groups { get; }

Property Value

GroupCollection

Methods

NextMatch()

Gets the next match

public Match NextMatch()

Returns

Match

the next match or this one if not any

Result(string)

Gets the result of the replacement

public virtual string Result(string replacement)

Parameters

replacement string

The replacement string

Returns

string

The string replaced

Synchronized(Match)

Synchronized the match.

public static Match Synchronized(Match inner)

Parameters

inner Match

The inner match.

Returns

Match

The syncrhonized match