Replace delimiter with new line in Notepad++


The most frequently used use-case of Notepad++ text editor is to quickly do some Find-And-Repalce on a text so that it can be used by a developer the way they want it and save a lot of time. One such use case is to replace a delimiter (comma, semicolon, space, tab, pipe, tilde) with a new line.

Steps to replace delimiter with new line

  1. One the file or be on the tab you want to replace the delimiter,
  2. Press Control + H to open relace window.
  3. Select Seach Mode: Extension (\n, \r, \t, \0, \x...)
  4. Now in Find What: Add your delimiter (can be a ; , : ~ or a single space or tab)
  5. In Find Replace: Add \n
    Replace delimiter with New Line using Notepad++
  6. Click on Replace All.
  7. You would see that wherever there was your delimiter, has been replaced by a new line.
Before:
1|2|3|4|5
7|8|9|10
After:
1
2
3
4
5
7
8
9
10
-


Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram