@jw what is your use case? Do you want to check whether regex matches string at the specified position? or something more complex involving changing internal state of Matcher?
In the former case we probably could introduce new
Regex
functions, like
matchesAt(string, index): Boolean
and
matchAt(string, position): MatchResult?
, although I'm not sure we could implement them effectively on all platforms.