I would like to remove everything from string except title and year of a movie
I would like to keep everything that's not in a bracket:
**Dirty.Work.Wie.deweit.wuerdest.Du.gehen.2018**[.German.AC3.WEBRip]
**Zwei.baerenstarke.Typen.1983**[.DE.EN.DTSHD.MasteDEr.5.1.2160p.HDR10.x265-kellerratte]
**The.Hills.Have.Eyes.1977**[.COMPLETE.UHD.BLURAY-UNTOUCHED]
**Wonder.Woman.1984.2020.**[GERMAN.DUBBED.DL.2160p.HDR.WEB.x265]
**Wonder.Woman.1984**[.GERMAN.]**2020**[.DUBBED.DL.2160p.HDR.WEB.x265]
**2012**[.German.]**2006**[.DL.2160p.UHD.BluRay.HDR.HEVC.Remux]
**Sherlock.Holmes.2009**[.German.DL.]**2022**[.ock.Holmes.UHD.BluRay.2160p.UHD.BluRay.HDR.HEVC.Remux]
Expected:
Dirty.Work.Wie.deweit.wuerdest.Du.gehen.2018
Zwei.baerenstarke.Typen.1983
The.Hills.Have.Eyes.1977
Wonder.Woman.1984 2020
Wonder.Woman.1984 2020
2012 2006
Sherlock.Holmes.2009 2022
This is what I tried:
((?<=\b\d{4}\b)|\b(German|DE)\b.*)
https://regex101.com/r/Z4cRMn/1
Does anyone has a clue how to do it? Need some examples maybe