Bug 423893

Summary: KRename regex rule does not work correctly
Product: [Applications] krename Reporter: Mihai Sorin Dobrescu <msdobrescu>
Component: generalAssignee: Heiko Becker <heiko.becker>
Status: CONFIRMED ---    
Severity: normal CC: justin.zobel, msdobrescu
Priority: NOR    
Version First Reported In: 5.0.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mihai Sorin Dobrescu 2020-07-05 07:58:18 UTC
SUMMARY

I try to rename files using regex.

STEPS TO REPRODUCE

There are files like:

1.jpg
2.jpg
3.jpg
...

I add a "Find and replace" regex rule:

"(.*)" to be replaced by "Abstract 100-\1"

OBSERVED RESULT

The new file names proposed by KRename are:

Abstract 100-1Abstract 100-.Abstract 100-jpgAbstract 100-
Abstract 100-2Abstract 100-.Abstract 100-jpgAbstract 100-
Abstract 100-3Abstract 100-.Abstract 100-jpgAbstract 100-
...

EXPECTED RESULT

The new file names should be:

Abstract 100-1.jpg
Abstract 100-2.jpg
Abstract 100-3.jpg
...

SOFTWARE/OS VERSIONS

Operating System: Gentoo Linux
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.6.0-sabayon
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7 CPU 920 @ 2.67GHz
Memory: 23,5 GiB of RAM
Graphics Processor: GeForce GTX 1060 6GB/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2020-11-24 06:38:36 UTC
I'm no guru with regex but I've confirmed the same result on krename 5.0.1.