I have a string containing a lot of text, spaces and line breaks. The problem i am facing is that i only wanna match the first line break and remove it.
I can match all the line breaks and remove them, but cannot figure out how to match only the first one.
Absolutely, forgott to mention that we would not know the last word/letter on the first line or the first word in the second line.
For example:
"
This is a test random word
random word as well And this line break should be removed
But not this one
Or this one
or this one as well.
"
So i would like the first line to contain, but nothing else changes:
This is a test random word random word as well and this line break should be removed
Desired output would be:
This is a test random word random word as well and this line break should be removed
But not this one
Or this one
or this one as well.