Community
    • Login

    Regualr Expression Help

    Scheduled Pinned Locked Moved General Discussion
    moving datarex
    3 Posts 2 Posters 3.6k 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.
    • Mike KovachM
      Mike Kovach
      last edited by

      Have a small task to merge data into individual lines.

      What I am looking to do is like the following:

      libogg-Red Hat Inc.
      1.1.3
      THERE IS A SPACE HERE and then other like data after the sapce.

      Thake those two lines and have it look like libogg-Red Hat Inc.,1.13
      and then remove the empty space. I’m looking to do this for 20000 rows of data. ANy one have any ideas on how to accomplish this?

      1 Reply Last reply Reply Quote 0
      • jonandrJ
        jonandr
        last edited by

        Replace

        (.+)\r\n(.+)
        

        with

        \1, \2
        

        Then remove the empty lines.

        Mike KovachM 1 Reply Last reply Reply Quote 0
        • Mike KovachM
          Mike Kovach @jonandr
          last edited by

          Worked perfectly, that you.

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