How to replace character based on pattern match
Posted: Mon Nov 01, 2021 1:14 pm
I have files / Folders with multiple "." that i want to change to a "whitespace" unless its a 4 digit number then i would like to replace .dddd. to "whitespace"(dddd) and then remove the rest of the name
For Example
Lappen.Dinner.1972.Strange
I would like to change to
Lappen Dinner (1972)
For Example
Lappen.Dinner.1972.Strange
I would like to change to
Lappen Dinner (1972)