Skip to content

Greedy matching in lookbehind expressions not working #159

Description

@LinqLover
'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...

Metadata

Metadata

Assignees

Labels

bug[WHAT] Something isn&#39;t working as expected. Automated tests beneficial. :-programmer[SCOPE] It is for the (maybe professional) programmertools and libraries[SCOPE] From #asTextToHtml over JSON parsing to Debugger and Browser.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions