Community
    • Login

    How to join the rows with notepad?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 525 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.
    • kikenetxy gigaK Offline
      kikenetxy giga
      last edited by

      I mean, how can I get from this:

      tony:
      av petit
      mary:
      2345678
      freddy:
      piso23
      james:
      @mail

      a result like this:

      tony:av petit
      mary:2345678
      freddy:piso23
      james:@mail

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @kikenetxy giga
        last edited by

        @kikenetxy-giga

        I might try a regular expression (search mode!) replacement:

        Search for: (?-s)(.+)\R(.+)

        and Replace with: \1\2

        1 Reply Last reply Reply Quote 3
        • guy038G Offline
          guy038
          last edited by guy038

          Hello, @kikenetxy-giga, and All,

          Elementary !

          • Open The Replace dialoag ( Ctrl + H )

          • SEARCH :\R

          • REPLACE :

          • Tick the Wrap around option, if necessary

          • Select the Regular expression search mode

          • Click once on the Replace All button or several times on the Replace button

          Notes :

          • The \R regex syntax search any kind of Line-Break ( \r\n in Windows files, \n in Unix files and \r in Mac files )

          • So the search regex looks for a colon :, ending a line

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 3

          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