Bug 423893 - KRename regex rule does not work correctly
Summary: KRename regex rule does not work correctly
Status: CONFIRMED
Alias: None
Product: krename
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.0.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Heiko Becker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-05 07:58 UTC by Mihai Sorin Dobrescu
Modified: 2020-11-24 06:38 UTC (History)
2 users (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 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.