Geany, like many text editors, has a replace dialog:
In the Replace with: field, how can I express that I want the pattern to get replaced with a new line character?
Geany, like many text editors, has a replace dialog:
In the Replace with: field, how can I express that I want the pattern to get replaced with a new line character?
\nSource Regular expression syntax
The selected answer did not work for me. What did work was checking 'Use escape sequences,' then using the '\n' in the replace field.
This was using Geany 0.21 which did not have "Use multi-line matching."
After updating Geany to 1.30.1 which does have "Use multi-line matching" the selected answer should work.