• Login
Community
  • Login

Regualr Expression Help

Scheduled Pinned Locked Moved General Discussion
moving datarex
3 Posts 2 Posters 3.7k 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.
  • M
    Mike Kovach
    last edited by Jul 16, 2015, 2:00 PM

    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
    • J
      jonandr
      last edited by Jul 16, 2015, 3:02 PM

      Replace

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

      with

      \1, \2
      

      Then remove the empty lines.

      M 1 Reply Last reply Jul 16, 2015, 4:15 PM Reply Quote 0
      • M
        Mike Kovach @jonandr
        last edited by Jul 16, 2015, 4:15 PM

        Worked perfectly, that you.

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