Page 1 of 1

Search and Replace

Posted: 21 Jan 2026 10:29
by Onnix
Hello everyone,
I'm wondering if anyone can help me. I want to find all the files in a folder and change the last character of any file that ends in the number "1" to "_a". For example:

Are there 421 students 1.mp3
Are there 421 students.mp3
Avogadro's number 602 1.mp3
Avogadro's number 602.mp3

The result should look like this:

Are there 421 students _a.mp3
Are there 421 students.mp3
Avogadro's number 602 _a.mp3
Avogadro's number 602.mp3

Thanks for any solution.

Re: Search and Replace

Posted: 21 Jan 2026 11:00
by highend
- If all files are in the same folder, just select all files
- If files can also be inside subfolders, switch to a files only branch view, CTRL+A

Right click on the selection
Rename Special - RegExp Rename...
1$ > _a /b

Re: Search and Replace

Posted: 21 Jan 2026 11:06
by Onnix
It doesn't seem to be working.

Re: Search and Replace

Posted: 21 Jan 2026 11:22
by highend
v27.20.0304 or newer is required for this pattern, otherwise you would need something like this:
(.+?)1(\.[^.]+?)$ > $1_a$2

Re: Search and Replace

Posted: 21 Jan 2026 14:58
by Onnix
Great. It works perfectly. Thanh you a lot.