...but it can combine 2 lines, using the N command, and then it can match \n, or better - if the character before TEXT is unknown - it can match whatever character precedes TEXT.technosaurus wrote:sed only does 1 line at a time so \n will never match...
@greengeek: You should attach an example of your raw messages, otherwise we don't know what kind of characters you are dealing with.
You should also clarify if you are still searching for a way to do it with Geany's Find & Replace or without Geany. Ironically Geany's regex patterns can be more powerful than what you can use with sed, but since you can't chain these commands as you would with sed, Geany is limited to one command - not enough for complex tasks.