Community

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

    Regualr Expression Help

    General Discussion
    moving data rex
    2
    3
    3400
    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 Kovach
      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
      • jonandr
        jonandr last edited by

        Replace

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

        with

        \1, \2
        

        Then remove the empty lines.

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

          Worked perfectly, that you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors