int = getRegexResultPosition(sListResults, nMatchIndex, nGroupIndex)
This macro function is used after a call to the function StrFindRegex to obtain the positions corresponding to various matches obtained from that function.
The returned position is relative to the original string supplied to StrFindRegex, with 1 representing its first character.
•nMatchIndex identifies the match to retrieve, starting at 1. The number of matches is returned by the preceding call to StrFindRegex.
•nGroupIndex identifies the capture group within that match. Use 0 to retrieve the entire match, or 1 and above to retrieve a numbered capture group.
Requesting a match or group that is not present in the results list causes an error.
See also: StrFindRegex, StrReplaceRegex, getRegexResultString.
Topic 188595, last updated on 09-Oct-2026