Remove - from yyyy-mm-dd at the end of a file name

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Remove - from yyyy-mm-dd at the end of a file name

Postby DANMA » Thu Feb 02, 2017 10:43 pm

I have bunch of files that have a yyyy-mm-dd as part file name and i need to remove the -.
the file name usually has - or -- in the begining of the file name too. so i just cant remove - from the file name

example
ABCDE--_123456_2017-02-02.pdf
ABCDEF-_123456_2017-02-02.pdf

i want to have it named
ABCDE--_123456_20170202.PDF
ABCDEF-_123456_20170202.pdf

any help is greatly appreciated. Thanks!
DANMA
 
Posts: 1
Joined: Thu Feb 02, 2017 10:30 pm

Re: Remove - from yyyy-mm-dd at the end of a file name

Postby Emerkamp » Fri Feb 03, 2017 11:51 am

Hi:

Regx
Match:
(.*)(-_)(.*)(_)(.*)-(.*)-(.*)

Replace:
\1\2\3\4\5\6\7

I haven't tested this, but should work if the pattern is the same with all files.
If not let us know.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm


Return to BRU Support