I am facing an OutOfBounds exception. The solution probably is very simple, but I cannot wrap my head around it
DIM RXMatches AS RegExMatch = MySuperDuperRegExObject.Search(MySuperDuperRegExSearchString)
DIM Parameters AS NEW Dictionary
FOR m AS Integer = 1 to RXMatches.SubExpressionCount
Parameters.Value(RXMatches.SubExpressionString(m)) = TRUE //<-- Here getting the OOB exception
NEXT
In the debugger I can see that RXMatches.SubExpressionCount equals 2.