My data is in the below format
1,"Hello,
World"
2,"HI,Hello"
I need to remove the line breaks Within the double quotes from Java. The data will look like :-
1,"Hello, World"
2,"HI,Hello"
My data is in the below format
1,"Hello,
World"
2,"HI,Hello"
I need to remove the line breaks Within the double quotes from Java. The data will look like :-
1,"Hello, World"
2,"HI,Hello"
You just can use the String method replace():
str.replace("\"[\s\S]*\n[\s\S]*\""", "")