I have the following text:
Filling a gap December 6, 2018 Slide 6 Small parts example. Padded details May 22, 2020 Slide 21 Adds to safety
I need to replace the date + slide by . (dot) to get the following result:
Filling a gap. Small parts example. Padded details. Adds to safety
Probably the mask can be used to identify the text to be removed:
{month} {day}, {year} {Slide} {slide number}
I can remove month using regex as follows:
(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)
But how can I define the mask and put everything together? Not sure if regex is a proper solution or it is overkill.