New user needs help with chaos into order

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

New user needs help with chaos into order

Postby jgregorym » Fri Feb 16, 2018 7:42 pm

Can anyone help me? What parameters would work best to help me rename the following 3 files keeping only the volume and page numbers separated by a hyphen (removing all other random letters and symbols, etc):
For example rename, these 3 files

volume-452_page-679_record number-0000NA_69479e48-0f89-418c-a868-d19f6a923105.pdf
volume-446_page-12_4e3e21e3-e05e-4ce2-b5e3-4937194aafc0.pdf
volume-476_page-511_record number-1226_95af5367-ad10-485a-bdf5-38f6ba55b632.pdf

so the resulting 3 file names look this below:

452-679.pdf
446-12.pdf
476-511.pdf

Can anyone give me some suggestions please?
jgregorym
 
Posts: 3
Joined: Fri Feb 16, 2018 5:17 pm

Re: New user needs help with chaos into order

Postby therube » Sat Feb 17, 2018 2:10 am

1:RegEx
Code: Select all
Match:  (\w+)-(\d+)(\w+)-(\d+)
Replace:  \2-\4
therube
 
Posts: 1393
Joined: Mon Jan 18, 2016 6:23 pm

Re: New user needs help with chaos into order

Postby jgregorym » Sat Feb 17, 2018 2:16 am

Thank you so much!! I'm going to try it now and I'll let you know how I do. I can't tell you how grateful I am you've helped me.
jgregorym
 
Posts: 3
Joined: Fri Feb 16, 2018 5:17 pm

Re: New user needs help with chaos into order

Postby jgregorym » Sat Feb 17, 2018 2:53 am

Ok, it worked for all but a few that had this:

Old name: volume-11_page-510B_record number-951_1d49b250-f9c4-4c60-b7a7-665b169e37f4.pdf 11-510.pdf

For example where the letter B (11-510B) is missing.

Can you make a change to account for this?

Thank you again, I hope you don't mind.
jgregorym
 
Posts: 3
Joined: Fri Feb 16, 2018 5:17 pm


Return to BRC Support