Welcome to the Genome Toolbox! I am glad you navigated to the blog and hope you find the contents useful and insightful for your genomic needs. If you find any of the entries particularly helpful, be sure to click the +1 button on the bottom of the post and share with your colleagues. Your input is encouraged, so if you have comments or are aware of more efficient tools not included in a post, I would love to hear from you. Enjoy your time browsing through the Toolbox.

Tuesday, March 11, 2014

Notepad++ Replace a Tab with a Newline

With the extended search mode in Notepad++, it is easy to replace non-character items using the Replace tool of Notepad++.  First open the replace dialogue box and click the radio button next to Extended (\n, \r, \t, \0, \x...) in the Search Mode box on the bottom left.  Now you are ready to look for these formatting expressions in your file.  Below are some examples.

To replace all tabs with newlines:
Find what: \t
Replace with: \r\n

To replace all newlines with tabs:
Find what: \r\n
Replace with: \t

No comments:

Post a Comment