'ab' copyWithRegex: '(?<=b*)b' matchesReplacedWith: 'X'.
Expected: 'aX'
Actual: 'ab'
When the lookbehind node attempts to match b* from position = 1, this inadvertently matches up to position = 2 and then fails because the final piece after the lookbehind can no longr be matched. Maybe the global backtracking barrier in lookaround nodes can simply not work...
Expected:
'aX'Actual:
'ab'When the lookbehind node attempts to match
b*fromposition = 1, this inadvertently matches up toposition = 2and then fails because the final piece after the lookbehind can no longr be matched. Maybe the global backtracking barrier in lookaround nodes can simply not work...