Remove Everything After Date

Bulk Rename Utility How-To's

Remove Everything After Date

Postby Smudger » Thu Feb 11, 2021 8:43 am

Good Morning

First post for me, but what I would like to do is to remove everything after and including the date as in:

The Magic Of Heineken 2014 Warner Bros TV series

to

The Magic Of Heineken

Thanks in advance
Smudger
 
Posts: 2
Joined: Thu Feb 11, 2021 8:39 am

Re: Remove Everything After Date

Postby Luuk » Thu Feb 11, 2021 2:10 pm

Greetings Smudger, the Regex(1) conducts like this, with a "Match" and "Replace" like ...
(.+)[ ]+(19|20)\d\d.*
\1

This to remove the very last " year", so being careful because files like "A 2012 Celebration.jpg" --> "A.jpg".
So Im probably using Filters(12) with .*(19|20)\d\d.* inside "Mask", then putting a checkmark in the "RegEx".
This to first give a better preview, for only the names having a date.
Luuk
 
Posts: 700
Joined: Fri Feb 21, 2020 10:58 pm

Re: Remove Everything After Date

Postby Smudger » Thu Feb 11, 2021 2:31 pm

Perfect thanks so much
Smudger
 
Posts: 2
Joined: Thu Feb 11, 2021 8:39 am


Return to How-To