https://bugs.kde.org/show_bug.cgi?id=499235
            Bug ID: 499235
           Summary: Possible Errors with Anchors: ^ $ \A \Z \z
    Classification: Applications
           Product: krename
           Version: 5.0.1
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: heiko.bec...@kde.org
          Reporter: ukmjenk...@gmail.com
  Target Milestone: ---

SUMMARY

The Anchors:
^ = Beginning of String (or Line).
$ = End of String (or Line).
\A = Beginning of String.
\Z End of String (or Before Optional Line Break).
\z = Very End of String.

STEPS TO REPRODUCE

I have a file with filename:
0000.0000.txt

(1) For Find and Replace, I can type:
Find = ^.
Replace = X

When I select "Okay",
the proposed filename appears:
X000.0000.Xtx
Is this correct or incorrect ?

Should the proposed filename be:
X000.0000.txt

(2) For Find and Replace, I can type:
Find = .$
Replace = X

When I select "Okay",
the proposed filename is:
0000.000X.txX
Is this correct or incorrect ?

Should the proposed filename be:
0000.0000.txX

(3) For Find and Replace, I can type:
Find = \A.
Replace = X

When I select "Okay",
the proposed filename is:
0000.0000.txt
Is this correct or incorrect ?

Should the proposed filename be:
X000.0000.txt

(4) For Find and Replace, I can type:
Find = .\Z
Replace = X

When I select "Okay",
the proposed filename is:
0000.0000.txt
Is this correct or incorrect ?

Should the proposed filename be:
0000.000.txX

(5) For Find and Replace, I can type:
Find = .\z
Replace = X

When I select "Okay",
the proposed filename is:
0000.0000.txt
Is this correct or incorrect ?

Should the proposed filename be:
0000.0000.txX

OBSERVED RESULT

I have tested these 5 anchors several times.
The results are always the same,
which I have described above.

Please Help.

EXPECTED RESULT

SOFTWARE/OS VERSIONS
Xubuntu 22.04 LTS

ADDITIONAL INFORMATION
7.30am Tuesday 28 January 2025.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to