I don't understand why the regex (?<=i:(?>\D*))\d
does not match the string i:>1
.
The way I undertand it:
- at index 0: the lookbehind
i
won't match - at index 1: the lookbehind
i:
won't match - at index 2: the lookbehind
i:(?>\D*)
will matchi:
but the\d
after the lookbehind won't match>
- at index 3: the lookbehind
i:(?>\D*)
will matchi:>
and the\d
after the lookbehind will match1
-> the regex is satisfied