Bug 499234 - Problem with The Regular Expression for The Lookback Function (?<=pattern)
Summary: Problem with The Regular Expression for The Lookback Function (?<=pattern)
Status: REPORTED
Alias: None
Product: krename
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Heiko Becker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-28 07:05 UTC by Michael Jenkins
Modified: 2025-01-28 18:30 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 Michael Jenkins 2025-01-28 07:05:30 UTC
SUMMARY

I have a file with the filename:
00 0000 00.txt

(1) For Find and Replace,
I can type, the lookahaed function:
Find = \s(?=\d(4})
Replace = X

So that, when I select "Okay",
The Proposed Filename correctly appears:
00X0000 00.txt

(2) For Find and Replace,
I can type, the lookback function:
Find = (?<=\d(4})\s
Replace = X

However, when I select "Okay",
The Proposed Filename incorrectly appears:
00 0000 00.txt

When, the correct result would  be:
00 0000X00.txt

STEPS TO REPRODUCE

OBSERVED RESULT

The lookback function appears to not work.
I have tested the lookahead and lookback functions, several times.
The lookahead function always works.
The lookback function never works.

Please Help.

EXPECTED RESULT

SOFTWARE/OS VERSIONS
Xubuntu 22.04 LTS

ADDITIONAL INFORMATION
7am Tuesday 28 2025.