• Login
Community
  • Login

NotePad++ - One line instead of two

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 6.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Adzkii
    last edited by Oct 7, 2015, 11:01 AM

    So i have a loads of lines in my txt file. I can’t explain much but I’ll give an example of what i need… I need it in one line not two

    notepad
    :test

    so i want it converted into one line

    notepad:test

    I have tone of these lines. So i want to replace all how do i do this fix?

    1 Reply Last reply Reply Quote 0
    • E
      Eduardo Borges
      last edited by Oct 7, 2015, 11:58 AM

      Open your text file
      in Search+Replace
      in Search Mode box
      select Extended (\n, \r, \t…
      Find what \r\n:
      Replace with :
      .
      Click Find Next
      Click Replace
      Repeat to satisfaction
      Click Replace All
      end
      .
      If you would like to “see” the working details, choose ¶ (Pi - show all characters Menu Icon)

      1 Reply Last reply Reply Quote 1
      • A
        Adzkii
        last edited by Oct 7, 2015, 12:03 PM

        You’re awesome but not close yet.
        The line get’s bigger and bigger. I want one line at a time.
        Also it adds extra : to it too :(

        Any suggestions?

        1 Reply Last reply Reply Quote 0
        • E
          Eduardo Borges
          last edited by Oct 7, 2015, 12:41 PM

          -------from:
          notepad
          :test
          notepad
          :test
          notepad
          :test
          ------- I got lines such as:
          notepad:test
          notepad:test
          notepad:test
          ------- Not
          notepad:testnotepad:testnotepad:test
          .
          Check your settings. Put exactly “\r\n:” and “:” in Search/Replace boxes, with Extended mode selected. Test again. If no good, post a sample from your actual source stuff, at least 20/30 lines long.

          1 Reply Last reply Reply Quote 1
          • A
            Adzkii
            last edited by Oct 7, 2015, 12:45 PM

            You’re damn awesome for helping me out, finally. I just forgot to put : at the end of \r\n

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors