Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

remove new line in string of java

String text = "line 1

line 3


line 5";
String adjusted = text.replaceAll("(?m)^[ 	]*
?
", "");
 
PREVIOUS NEXT
Tagged: #remove #line #string #java
ADD COMMENT
Topic
Name
4+1 =