I am using Find Matching Patterns activities to retrieve specific regex values from a text.
The result of the activity is a list with all of the results.
Is there a way to retrieve not just the regex result, but also the index position of the result in the text?
My problem is that the Extracted string could be the same multiple times.
Like regex result list: [55,83,27,55,…] and I would need both 55 position within the long text.
For Each (item in regexResultsList):
Assign :
index = originalText.IndexOf(item)
Log Message :
"Regex Result: " + item.ToString() + ", Index Position: " + index.ToString()