Bug 464725

Summary: Lookbehind regex not working
Product: [Applications] kate Reporter: H.H. <cyberbeat>
Component: searchAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description H.H. 2023-01-24 09:06:16 UTC
I have following example:

Regex (it should find $myvar but not @$myvar):
(?<!@)\$myvar

on text
abcde @$myvar abcde $myvar

kwrite highlights both as matches, but it should only find the second.

I tested it successfully here: https://regex101.com/
Comment 1 Christoph Cullmann 2024-11-03 16:51:36 UTC
Works for me with 24.08.

What might confuse is that if the cursor is on myvar we still highlight the other one due to the 'current word' highlighting.