Community
    • Login

    How to join the rows with notepad?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 258 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
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors