You can use the built-in function replace
\s+On[\w\W]+?wrote:[\w\W]+
Proof https://regex101.com/r/g4VSVA
- Use the replace function to replace it with emptystring.
You can use the built-in function replace
\s+On[\w\W]+?wrote:[\w\W]+
Proof https://regex101.com/r/g4VSVA