Sublime Forum

3103 Regex replace only works partially with lookbehind

#1

Hello guys,

in the new build 3103 I have an issue replacing text with regular expressions containing lookbehinds.

For example when the file contains:

The quick brown fox jumps and jumps over the lazy dog

And the search pattern is containing a lookbehind such as:

(?<=j)u

it correctly finds and selects the us in “jumps”.

However, when I now want to replace the u with something such as:
o

clicking on “Replace” does nothing.

“Replace All” however works as intended.

2 Likes

#2

confirmed that this problem still exists in build 3109. Probably it needs to be added to the bug tracker

0 Likes

#3

I have now logged this here: https://github.com/SublimeTextIssues/Core/issues/1150

0 Likes