Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to join the rows with notepad?

    Help wanted · · · – – – · · ·
    3
    3
    66
    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 giga
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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
        • guy038
          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
          Copyright © 2014 NodeBB Forums | Contributors