C# Class Pihrtsoft.Text.RegularExpressions.Linq.Extensions.MatchExtensions

Provides a set of static methods that extends the Match class.
ファイルを表示 Open project: JosefPihrt/LinqToRegex

Public Methods

Method Description
EnumerateCaptures ( this match ) : IEnumerable

Enumerates through groups of a specified match and returns each capture from each group.

EnumerateCaptures ( this match, int groupNumber ) : IEnumerable

Returns an enumerable collection of captures of a group with a specified number that is from a specified match.

EnumerateCaptures ( this match, string groupName ) : IEnumerable

Returns an enumerable collection of captures of a group with a specified name that is from a specified match.

EnumerateGroups ( this match ) : IEnumerable

Returns enumerable collection of group of a specified match.

Group ( this match, int groupNumber ) : Group

Returns a group that has a specified number and it is contained in a specified match.

Group ( this match, string groupName ) : Group

Returns a group that has a specified name and it is contained in a specified match.

Method Details

EnumerateCaptures() public static method

Enumerates through groups of a specified match and returns each capture from each group.
is null.
public static EnumerateCaptures ( this match ) : IEnumerable
match this A regular expression match.
return IEnumerable

EnumerateCaptures() public static method

Returns an enumerable collection of captures of a group with a specified number that is from a specified match.
is null.
public static EnumerateCaptures ( this match, int groupNumber ) : IEnumerable
match this A regular expression match.
groupNumber int A number of the group.
return IEnumerable

EnumerateCaptures() public static method

Returns an enumerable collection of captures of a group with a specified name that is from a specified match.
or is null.
public static EnumerateCaptures ( this match, string groupName ) : IEnumerable
match this A regular expression match.
groupName string A name of the group.
return IEnumerable

EnumerateGroups() public static method

Returns enumerable collection of group of a specified match.
is null.
public static EnumerateGroups ( this match ) : IEnumerable
match this A regular expression match.
return IEnumerable

Group() public static method

Returns a group that has a specified number and it is contained in a specified match.
is null.
public static Group ( this match, int groupNumber ) : Group
match this A regular expression match.
groupNumber int A number of the group.
return System.Text.RegularExpressions.Group

Group() public static method

Returns a group that has a specified name and it is contained in a specified match.
is null.
public static Group ( this match, string groupName ) : Group
match this A regular expression match.
groupName string A name of the group.
return System.Text.RegularExpressions.Group