I have strings in the form of: t1 v2. and I need the numbers after the t and the v, seems pretty straight forward, im doing:
Regex regex = new Regex(“t([0-9])”);
MatchCollection matches = regex.Matches(options);
if (matches.Count > 0) {
foreach (Match match in matches) {
CaptureCollection captures = match.Captures;
Debug.Log(captures[0].Value);
}
}
I’ve tried a few other things but it always returns “t1” I need it to return “1”.
What am I missing here?