Newbie, Needing help with bulk rename

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

Newbie, Needing help with bulk rename

Postby tyenbb » Fri Oct 13, 2017 5:52 pm

Hello,

I essentially have 100s of files that would like anything like Joe-Bob.jpg, Jonathan-Doe.jpg, cathy-doe.jpg. I essentially just want to keep the first letter and then everything after the dash.
To look like, JBob.jpg, JDoe.jpg, CDoe.jpg
Case sensitivity doesn't matter.

Thanks
T
tyenbb
 
Posts: 2
Joined: Thu Oct 12, 2017 10:42 pm

Re: Newbie, Needing help with bulk rename

Postby therube » Fri Oct 13, 2017 6:08 pm

A start...


1:RegEx
Code: Select all
Match:  (^.).*-(.*)
Replace:  \1-\2


Joe-Bob.jpg
->
J-Bob.jpg


Note that .*- is greedy, so:

C-0004-Cosi_4000x2000.png
->
C-Cosi_4000x2000.png
therube
 
Posts: 378
Joined: Mon Jan 18, 2016 6:23 pm

Re: Newbie, Needing help with bulk rename

Postby tyenbb » Fri Oct 13, 2017 7:08 pm

Thanks, I got the rest as well. Much appreciated for the start
tyenbb
 
Posts: 2
Joined: Thu Oct 12, 2017 10:42 pm


Return to BRU Support


cron