Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • While not an elegant solution, I had to use exactly this approach when doing a large, multiline search and replace within a Windows text editor.
    – siliconpi
    Commented May 16, 2012 at 16:08
  • If your replacement text doesn't contain escaped characters which are parsed by extended method (\n, \r, \t etc.) then you can make it easier by simply replacing \r\n with \\r\\n with no need to change anything back. Commented Aug 11, 2016 at 14:32