delete everything after a word

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
Reply to #1:

replace: 1080p*
with 1080p


replace: 720p*
with 720p
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