Hi everyone
If I have a multi-line string like the following:
''blablabla bla
blabla
blabla
blablabla''
Is there a way I can erase all the blank lines from the string to either generate a new string or modify the existing one? The solution I'm looking for must work for all possible array sizes and any number of blank lines.
I'd really appreciate your help.
Thanks
Shabal
If I have a multi-line string like the following:
''blablabla bla
blabla
blabla
blablabla''
Is there a way I can erase all the blank lines from the string to either generate a new string or modify the existing one? The solution I'm looking for must work for all possible array sizes and any number of blank lines.
I'd really appreciate your help.
Thanks
Shabal