Notepad++:- Editor – Find And Replace – Break Into Lines

Background

During the day I use a text editor quite a bit.

Some people it is a spreadsheet.

Others it is a word processor.

And, yet others it is a video or audio tool.

Cut & Paste

I cut and paste through the day.

 

Raw Text

Often it is raw text.

Here is a sample text

John, Smith, Bob, Wilson, Lance, Paul, Sandy, Latoya, Belinda

 

Revision

Broken Into Lines

Outline

I will like to break the pasted block into separate lines

Notepad++

Steps

  1. Select the text
  2. Use the menu items Search/Replace
  3. In the Replace window
    • Find What
      • Syntax
        • Selected Text
      • Sample
        • Original
          • John, Smith, Bob, Wilson, Lance, Paul, Sandy, Latoya, Belinda
        • Revised
          • ,
    • Replace With
      • Syntax
      • Sample
        • Original
        • Revised
          • \n \t,
    • In Selection
      • Checked
    • Search Mode
      • Normal
      • Extended
      • Regular Expression

Images

Image – Editor – Text – Original

Image – Editor – Text – Highlighted

Image – Editor – Tab – Replacing
Image – Editor – Tab – Replaced

Image – Editor – Post

 

Referenced Work

  1. Stack Overflow
    • How to break lines at a specific character in Notepad++?
      Link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s