Remove everything after the date (but keep the date)

Bulk Rename Utility How-To's

Remove everything after the date (but keep the date)

Postby SwagPaenus » Fri Jun 09, 2023 4:50 pm

Hi,

I would like to remove everything after (but not including) the date.

For example, I'd like my folders renamed:

From: This movie title 2023 blah blah blah

To: This movie title 2023

Basically just like what was posted in the answer over here (https://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=12&t=5392), however I would like to keep the date and not remove it.

I got thousands of files to rename, so I'd be very grateful if there's a RegEx to do that. Thank you so much in advance and I wish everyone a great weekend :D
SwagPaenus
 
Posts: 2
Joined: Fri Jun 09, 2023 4:34 pm

Remove everything after " yyyy"

Postby Luuk » Fri Jun 09, 2023 11:58 pm

If only renaming folders, then Filters(12) wont need a checkmark inside for "Files".
If its always like " yyyy " then RegEx(1) can use a "Match" and "Replace" like..
(.+ (19|20)\d\d) .+
\1
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Remove everything after " yyyy"

Postby SwagPaenus » Sat Jun 10, 2023 6:59 am

Luuk wrote:If only renaming folders, then Filters(12) wont need a checkmark inside for "Files".
If its always like " yyyy " then RegEx(1) can use a "Match" and "Replace" like..
(.+ (19|20)\d\d) .+
\1


That works perfectly ! Thank you so much for this, I'm very grateful. You and this amazing software just saved me dozens of hours of my time :D
SwagPaenus
 
Posts: 2
Joined: Fri Jun 09, 2023 4:34 pm


Return to How-To