replace last appearance of a character

Advanced Renamer forum
#1 : 30/12-23 09:30
Juarez
Juarez
Posts: 2
i want replace last "-" for space
filename examples

2023-12-30 Alpin-Sts-0025

2023-12-30 Alpin-Sts-Bhs-0025

2023-12-30 Alpin-0025

2023-12-30 Alpin-Sts-Bhs-XS-0025 Nation

i want all then be like

2023-12-30 Alpin-Sts 0025

2023-12-30 Alpin-Sts-Bhs 0025

2023-12-30 Alpin 0025

2023-12-30 Alpin-Sts-Bhs-XS 0025 Nation


30/12-23 09:30
#2 : 30/12-23 15:50
Miguel
Miguel
Posts: 136
Reply to #1:
Hi,
You can use the next regular expresion:

TEXT TO BE REPLACE: [-](?=[^-]*$)

REPLACE WITH : (add a blank space)

OCCURRENCE: ALL

Select Use Regular Expression.


30/12-23 15:50
#3 : 30/12-23 18:39
Juarez
Juarez
Posts: 2
Reply to #2:
Thank you very much Miguel!
happy New Year!


30/12-23 18:39
#4 : 30/12-23 20:20
Miguel
Miguel
Posts: 136
Reply to #3:
Happy New Year!


30/12-23 20:20