How to 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

This is not an AI-generated article but is demonstrated by a human on a Windows 11 device.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap