Renaming or swapping I can't figure it out, need help

Hi everyone.

I'm trying to rename some 1400 files and have trouble getting it right. I'm trying to swap the year which is at the end of the filename to the beginning of the filename

I want to change from

China 20 Yuan 2025
China 20 Yuan 2025_
Eastern Caribbean 2 Dollars 2024
Eastern Caribbean 2 Dollars 2024_
Isle of Man 1 Pound 1983
Isle of Man 1 Pound 1983_

to

2025 China 20 Yuan
2025_ China 20 Yuan
2024 Caribbean 2 Dollars
2024_ Eastern Caribbean 2 Dollars
1983 Isle of Man 1 Pound
1983_ Isle of Man 1 Pound

Is there a pattern or script that can accomplish this? I'm using the latest version 4.16.1.

Please help.

Thank you.
Reply to #1:
Hi Gerson,
You need to use the Replace method with regular expressions.

Replace: (.*) (\d{4}_|\d{4})
Replace with: \2 \1

Use regular expressions: checked

See the following image:
https://i.postimg.cc/66cZdGFx/Img-003.png

This way, you have separated the two parts of the filename: the first part (.*), which is the part of the filename up to the year, and the second part, which is the year (four digits), with or without the underscore.
In the 'Replace with' field, these portions of the filename have been swapped.

I hope this helps you