Page 1 of 1

Newbie, Needing help with bulk rename

PostPosted: Fri Oct 13, 2017 5:52 pm
by tyenbb
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

Re: Newbie, Needing help with bulk rename

PostPosted: Fri Oct 13, 2017 6:08 pm
by therube
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

Re: Newbie, Needing help with bulk rename

PostPosted: Fri Oct 13, 2017 7:08 pm
by tyenbb
Thanks, I got the rest as well. Much appreciated for the start