Page 1 of 1

Preserving a sequential file name in brackets or parentheses

PostPosted: Sat Jan 04, 2020 4:45 pm
by batzradio
I have a large collection of files, many of which require a reformatting and I'm stumped on how to do so.

Current format:

foo bar_Disk1.xyz
foo bar_Disk2.xyz
foo bar_Disk3.xyz
goo par_Disk1.xyz
goo par_Disk2.xyz

Ideal format:

foo bar [Disk1].xyz
foo bar [Disk2}.xyz
foo bar [Disk3].xyz
goo par [Disk1].xyz
goo par [Disk2].xyz

If it affects the formatting, I also have some series of files that start at Disk0 and some series that seem to be lettered (starting with DiskA).

Re: Preserving a sequential file name in brackets or parentheses

PostPosted: Sun Jan 05, 2020 2:09 pm
by therube
This do it?

3:Replace
Code: Select all
Replace: _
With:  [   (that's a <sp>[)


7:Add
Code: Select all
Suffix: ]

Re: Preserving a sequential file name in brackets or parentheses

PostPosted: Sun Jan 05, 2020 2:30 pm
by batzradio
Yeah, this works - I don't know why, but I was overthinking this entire process, just because I'm so used to digging up more complex formulas for fixing more irregular file names. Thanks!