How can I remove multiple linebreaks from a string so I only get one linebreak if any. For example I have a string with "\r\n\r\n\r\n\r\n\r\n\r\n\r\n", how can I turn that into a single '\n' ?
How can I remove multiple linebreaks from a string so I only get one
Share
You could use: