Skip to content

Latest commit

 

History

History
197 lines (111 loc) · 8.67 KB

File metadata and controls

197 lines (111 loc) · 8.67 KB

Pattern.EnumerateCaptures Method

Home

Containing Type: Pattern

Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll

Overloads

Method Summary
EnumerateCaptures(String) Searches the specified input string and returns an enumerable collection of captures.
EnumerateCaptures(String, Int32) Searches the specified input string and returns an enumerable collection of captures from groups that have a specified number.
EnumerateCaptures(String, Int32, RegexOptions) Searches the specified input string and returns an enumerable collection of captures from groups that have a specified number, using the specified matching options.
EnumerateCaptures(String, RegexOptions) Searches the specified input string and returns an enumerable collection of captures, using the specified matching options.
EnumerateCaptures(String, String) Searches the specified input string and returns an enumerable collection of captures from groups that have a specified name.
EnumerateCaptures(String, String, RegexOptions) Searches the specified input string and returns an enumerable collection of captures from groups that have a specified name, using the specified matching options.

EnumerateCaptures(String)


Searches the specified input string and returns an enumerable collection of captures.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input)

Parameters

inputString

The string to search for a match.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input is null.

EnumerateCaptures(String, Int32)


Searches the specified input string and returns an enumerable collection of captures from groups that have a specified number.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input, int groupNumber)

Parameters

inputString

The string to search for a match.

groupNumberInt32

A valid number of the group.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input is null.

EnumerateCaptures(String, Int32, RegexOptions)


Searches the specified input string and returns an enumerable collection of captures from groups that have a specified number, using the specified matching options.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input, int groupNumber, System.Text.RegularExpressions.RegexOptions options)

Parameters

inputString

The string to search for a match.

groupNumberInt32

A valid number of the group.

optionsRegexOptions

A bitwise combination of the enumeration values that specify options for matching.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input is null.

EnumerateCaptures(String, RegexOptions)


Searches the specified input string and returns an enumerable collection of captures, using the specified matching options.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input, System.Text.RegularExpressions.RegexOptions options)

Parameters

inputString

The string to search for a match.

optionsRegexOptions

A bitwise combination of the enumeration values that specify options for matching.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input is null.

EnumerateCaptures(String, String)


Searches the specified input string and returns an enumerable collection of captures from groups that have a specified name.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input, string groupName)

Parameters

inputString

The string to search for a match.

groupNameString

A name of the group.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input or groupName is null.

EnumerateCaptures(String, String, RegexOptions)


Searches the specified input string and returns an enumerable collection of captures from groups that have a specified name, using the specified matching options.

public System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Capture> EnumerateCaptures(string input, string groupName, System.Text.RegularExpressions.RegexOptions options)

Parameters

inputString

The string to search for a match.

groupNameString

A name of the group.

optionsRegexOptions

A bitwise combination of the enumeration values that specify options for matching.

Returns

IEnumerable<Capture>

Exceptions

ArgumentNullException

input or groupName is null.