i have file names like this:-
Dora.And.The.Lost.City.Of.Gold.2019.720p.BluRay.x264
Nine.Lives.2016.1080p.BluRay.x264
Maleficent.Mistress.Of.Evil.2019.720p.WEBRip.x264
i need to find the first four digit numbers which are for the year and then delete everything starting from the . before those numbers till the end of the file name. thus the names will become:-
Dora.And.The.Lost.City.Of.Gold
Nine.Lives
Maleficent.Mistress.Of.Evil
i also want to do it if the file name contains 720p or 1080p
how do i do what i want?