import java.util.*;
import java.util.regex.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String s = "\"Test Line wo line break\"; \"Test Line \nwith line break\"\n\"Test Line2 wo line break\"; \"Test Line2 \nwith line break\"";
		Matcher m = Pattern.compile("\"[^\"]*\"").matcher(s);
		s = m.replaceAll(r -> m.group().replaceAll("\\R+", ""));
		System.out.println(s);
	}
}