regexnotepad++

How to remove linebreaks and replace them with a comma in Notepad++


I need some help in Notepad++ and regular expressions.

Example how it looks at the moment:

aaaaa
bbbb
cccccc

How I want it (remove breakpoints and replace them with a comma and a blank space):

aaaaa, bbbb, cccccc

I was told that I can do it by checking "Regular expression" and "matches newline" and;

Find what: "[\r\n]+"

Replace with:","

-> Replace All

However I can't find the "matches newline" in my Replace window. Do I need any plugins for it? The version of my Notepad++ is 5.7 (UNICODE).


Solution

  • Use the Extended search mode, replacing \r\n with ,

    ScreenShot