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
Groups
Gets a group collection.
public virtual GroupCollection Groups { get; }
Property Value
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
stringThe replacement string
Returns
- string
The string replaced
Synchronized(Match)
Synchronized the match.
public static Match Synchronized(Match inner)
Parameters
inner
MatchThe inner match.
Returns
- Match
The syncrhonized match