Page 1 of 1

Can't rename files with certain non-aplhanumeric characters

PostPosted: Thu Sep 01, 2016 11:14 pm
by notbananas
Apparently file names containing certain non-alphanumeric characters are not able to be bulk renamed. I have about 35 files with all the same format, dates contained between square brackets. Another set with leading ampersand and dates contained within square brackets.

I want to eliminate the square brackets and the ampersands and add a hyphen between the date and the item name with a single space before and after the hyphen.

Example:

from: [1980] Chicago
to: 1980 - Chicago

from: @[2016] Today
to: 2016 - Today

Any ideas?

Re: Can't rename files with certain non-aplhanumeric characters

PostPosted: Fri Sep 02, 2016 12:58 am
by therube
1.RegEx

Code: Select all
Match:  ^(@?\[)(.*)(])(.*)
Replace:  \2 -\4