You need to sign in to do that
Don't have an account?
Amit Visapurkar 5
how to remove blank lines using apex
String 1
String 2
I want to remove the blank line between String 1 and String 2.
Please help its urgent
String 2
I want to remove the blank line between String 1 and String 2.
Please help its urgent
String1
String2
String3
If String2 gets removed because of some update then the output is
String1
String 3
I want the output to be
String1
String3
I need to remove the blank line.
You can use below code.
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
I tried your solution but it is giving the following error
Invalid string literal '\s+'. Illegal character sequence '\s' in string literal
Please try this.
Thanks and Regards
sandhya
Tried that also but not giving desired result.