Bug 464725 - Lookbehind regex not working
Summary: Lookbehind regex not working
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 22.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-24 09:06 UTC by H.H.
Modified: 2024-11-03 16:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.