Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Would someone please explain the anonymous downvote ? If anything is wrong with my answer I am willing to improve it. Commented Feb 11, 2019 at 23:32
  • 1
    Well the other solution seems better because it's watching for any space/line break between elements but the regex_replace functions is not working for me ... but your first snippet works like a charm, i needed to replace both \n and \r\n. Thank's ! Commented Feb 12, 2019 at 7:33