in reply to Re^2: Variable-Width Lookbehind (hacked via recursion)
in thread Variable-Width Lookbehind (hacked via recursion)

putting the explanation of why into words...

So the two key things to note are:

So for the regex in question it boils down to two cases:

Minor edit for clarification.