Given a regex like
(a|b){2}\1
What will \1
refer to? The first capture, the last capture, or what?
Regex.IsMatch("aba", @"^(?:(a|b){2}\1)$") == False
Regex.IsMatch("abb", @"^(?:(a|b){2}\1)$") == True
Leads me to suspect it matches the last capture. I'm I correct in this assumption?