Bug 457535

Summary: regexp for empty strings don`t work
Product: [Applications] kate Reporter: Филипп <archmagef>
Component: searchAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: christoph
Priority: NOR    
Version First Reported In: 20.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Филипп 2022-08-05 19:23:10 UTC
SUMMARY
regexp "^\n" do not find any empty string in find and replace. "^$" also don`t work. 
Kwrite do this replace without problem.

STEPS TO REPRODUCE
1. I saved log file (2 MB)  filter some strings with nothing → many empty strings
2. try to replace them like "^\n" for nothing

OBSERVED RESULT
not find any string

EXPECTED RESULT
all empty strings removed

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Debian GNU/Linux 11 5.10.0-16-amd64
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2025-03-02 22:14:37 UTC
Just tried that in master, did work for me.