Delete everything after the date

Advanced Renamer forum
#1 : 15/05-20 04:28
Rich
Rich
Posts: 2
Is there anyway to have the program delete everything after the date?

Flirting With Forty 2008 DVDRip XviD-miguel ENG
Flying Monsters 2011 480p DiVERSiTY
Force 2011 DVDRip 720p x264 AAC-SiNiSTER

converted to

Flirting With Forty 2008
Flying Monsters 2011
Force 2011


15/05-20 04:28
#2 : 15/05-20 09:53
David Lee
David Lee
Posts: 447
Remove pattern .*?\d{4}\K.*
Using Regular expressions

This will remove everything following the first 4-digit number


15/05-20 09:53
#3 : 15/05-20 14:32
Rich
Rich
Posts: 2
Reply to #2:
Thanks, you are a lifesaver!!!


15/05-20 14:32
#4 : 15/05-20 14:50
David Lee
David Lee
Posts: 447
Reply to #3:
A neater version using the Remove method...

Remove count: $
Starting at: \d{4}
Use regular expressions


15/05-20 14:50