For a regex expression, select the Regular expression search mode ( IMPORTANT )

Click on the Replace All button

Et voilà !

NOTES :

First, the in-line modifier (?-s) ensures you that the dot meta-character will match standard characters, only, even if you previously checked the . matches newline option !

Then, the regex engine looks, from the beginning of a line (^ ), for any amount, even empty, of characters (.* ), followed by what you’re searching, then followed by any range, even empty, of characters (.* ), till the End of Line character(s) (\R )