Please enable JavaScript to view this site.

 

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.

 

nMatchIndex corresponds to the index of the Match found by the previous call to StrFindRegex. Recall that the result of the function StrFindRegex gives you the total number of matches.

nGroupIndex corresponds to the index of the capture group of the Match of index nMatchIndex found by the previous call to StrFindRegex.

 

See also: StrFindRegex, StrReplaceRegex, getRegexResultString.

 

 

 


Topic 188595, last updated on 15-Jun-2025