UtilRegExGetMatchesPositions(Regex, String, Int32) Method

Gets a friendlly collection of all the RegEx matches being at the specified group index, and their matches positions.

Definition

Namespace: DevCase.Core.DataProcessing.RegEx
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<MatchPositionInfo> GetMatchesPositions(
	Regex regEx,
	string text,
	int groupIndex
)

Parameters

regEx  Regex
The RegEx pattern.
text  String
The text where to test the RegEx.
groupIndex  Int32
The group index of the successful matches.

Return Value

IEnumerableMatchPositionInfo
An IEnumerableT that contains the RegEx matches and their positions.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also