delete everything after a word

Advanced Renamer forum
#1 : 08/09-20 06:53
nfastsagar
nfastsagar
Posts: 3
i have this file paturn
file.name.1080p.random-words.mp4
file.name.720p.random-words.mp4

1. i would like to remove everything after 1080p/720p. so the files should look like
file.name.1080p.mp4
file.name.720p.mp4

2 i also like to have the option to remove everything with 1080p/720p. so the files should look like
file.name.mp4
how can I do that

thanks


08/09-20 06:53
#2 : 08/09-20 19:33
Tobi
Tobi
Posts: 3
Reply to #1:

replace: 1080p*
with 1080p


replace: 720p*
with 720p


08/09-20 19:33
#3 : 09/09-20 00:28
David Lee
David Lee
Posts: 517
Reply to #1:

1.
Replace: \.\d{3,4}p\K.*$
with: blank
Use regular expressions

2.
Replace: \.\d{3,4}p.*$
with: blank
Use regular expressions


09/09-20 00:28