Rename files counter

A swapping-ground for Regular Expression syntax

Rename files counter

Postby Trinity » Thu Jun 13, 2019 11:15 am

Good day! please help to rename the files

Original filename:
342_236_197_0001.TIF
342_236_197_0002.TIF
342_236_197_0003.TIF

New filename:
342_236_197_(1).TIF
342_236_197_(2).TIF
342_236_197_(3).TIF

Thanks!
Trinity
 
Posts: 2
Joined: Thu Jun 13, 2019 11:10 am

Re: Rename files counter

Postby therube » Thu Jun 13, 2019 4:09 pm

1:RegEx
Code: Select all
Match:  (.*)_
Replace:  \1_(

Rename that part.
Then...

7:Add
Code: Select all
Suffix: )

Rename.

Source file names would need to be in the correct "order" for the numbering to follow along appropriately.
therube
 
Posts: 1367
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename files counter

Postby Trinity » Fri Jun 14, 2019 5:41 am

thank you, the result for all files was 342_236_197_().TIF
Trinity
 
Posts: 2
Joined: Thu Jun 13, 2019 11:10 am

Re: Rename files counter

Postby therube » Fri Jun 14, 2019 11:01 am

Oh, I messed that up, didn't I...

Sort of missed (including in the above post) one of the steps, I think it was.

Before the first rename you'd want to include:

10:Numbering -> Suffix


I think that's what it was. Will need to check later.

Yes, that should be it.
therube
 
Posts: 1367
Joined: Mon Jan 18, 2016 6:23 pm


Return to Regular Expressions