in reply to Re: Join multiple lines in a string based on regex. (Updated)
in thread Join multiple lines in a string based on regex.

Thanks for the reply . It seems we are combining every 3 lines in to a single line , If I am not wrong . The O/P could even stretch to more than 3 lines after matching array and until it hits the next array string .
  • Comment on Re^2: Join multiple lines in a string based on regex. (Updated)

Replies are listed 'Best First'.
Re^3: Join multiple lines in a string based on regex. (Updated)
by BrowserUk (Patriarch) on Dec 16, 2014 at 20:33 UTC
    The O/P could even stretch to more than 3 lines after matching array and until it hits the next array string

    Then it is a good idea to present sample data that shows that.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.