Notepad++ search and replace newline with comma

I sometimes have longer lists where it is useful to do a search and replace. For instance I just exported a list of e-mail addresses from my database and wanted to to a search and replace to replace newline with comma. This can easily be accomplished by choosing search -> replace. Choose extended mode and enter \r\n for find what and , in Replace with.