Remove square brackets while using Append Folder Name

A swapping-ground for Regular Expression syntax

Remove square brackets while using Append Folder Name

Postby lj87 » Sun May 01, 2016 1:41 pm

Hi,

I'm currently using Append Folder Name, but the folder name has square brackets in it which I do not want in my file names.

Example:

Folder name: [xxxxxx] xxxxx - xxxxxx

I have currently set a few different settings so the file name looks like this:

[xxxxxx] xxxxx - xxxxxx - 012.jpg

I want it to look like this:

xxxxxx - xxxxx - xxxxxx - 012.jpg

ie. Remove the square brackets, and add a hyphen between the first and second words. With Append Folder Name selected, it appears to override every other setting like Replace or Remove.

Appreciate any help :)

Thanks.
lj87
 
Posts: 3
Joined: Sun May 01, 2016 1:28 pm

Re: Remove square brackets while using Append Folder Name

Postby Admin » Mon May 02, 2016 2:33 am

Hi, you will have two options:
- use Javascript renaming (it will require a commercial license) and make a custom script for this.
- do it in 2 passes. First add the folder then remove the [ and replace ] with -
thanks
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Re: Remove square brackets while using Append Folder Name

Postby lj87 » Mon May 02, 2016 2:58 am

Thanks for the info. The 2 pass method seems easiest. Is there a way I can do a bulk rename of every file in the folders of a certain parent folder? Or do I need to click each folder individually in the tree, and press Alt+r to apply the rename for each folder's files (which I'm currently doing).
lj87
 
Posts: 3
Joined: Sun May 01, 2016 1:28 pm

Re: Remove square brackets while using Append Folder Name

Postby lj87 » Tue May 03, 2016 2:54 am

Nevermind. I found another thread with the same question - viewtopic.php?f=4&t=1808

All working nicely :)
lj87
 
Posts: 3
Joined: Sun May 01, 2016 1:28 pm


Return to Regular Expressions