Mailing the story:
Advanced Search and Replace with the Kate Text Editor
The powerhouse Kate text editor has advanced search-and-replace, including support for escape sequences and regular expressions, so you can make complex corrections without leaving your document.