Add certain word before certain text in file name?

A swapping-ground for Regular Expression syntax

Add certain word before certain text in file name?

Postby Jakov » Fri Apr 23, 2021 2:23 am

Please anyone can help me?

In general, how to search for certain text in the file name in order to put certain text before it.
In my case, I have a list of programs with the file name as follows :
Abelssoft Tagman v2016.2.11
Ashampoo Red Ex v1.0.0 ... etc

I want to add "Repack" before the file version in order to be :
Abelssoft Tagman Repack v2016.2.11
Ashampoo Red Ex Repack v1.0.0

Thanks
Jakov
 
Posts: 54
Joined: Sat May 23, 2020 1:29 am

Re: Add certain word before certain text in file name?

Postby Luuk » Fri Apr 23, 2021 4:21 pm

First to put a checkmark in "v2", then Im thinking a Match and Replace to be like...
( v\d+(\.\d+)+)
\ Repack$1
The "\" is not really necessary, except this forum does forbid starting the lines with a space.
Luuk
 
Posts: 690
Joined: Fri Feb 21, 2020 10:58 pm

Re: Add certain word before certain text in file name?

Postby Jakov » Fri Apr 23, 2021 9:19 pm

Why luuk :)
You are awesome
Billion Thanks for you
Best Regards
Jakov
 
Posts: 54
Joined: Sat May 23, 2020 1:29 am


Return to Regular Expressions