Community
    • Login

    NotePad++ - One line instead of two

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 6.8k Views 1 Watching
    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.
    • AdzkiiA Offline
      Adzkii
      last edited by

      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
      • Eduardo BorgesE Offline
        Eduardo Borges
        last edited by

        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
        • AdzkiiA Offline
          Adzkii
          last edited by

          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
          • Eduardo BorgesE Offline
            Eduardo Borges
            last edited by

            -------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
            • AdzkiiA Offline
              Adzkii
              last edited by

              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors