Community
    • Login

    Regualr Expression Help

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

          Worked perfectly, that you.

          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