Answers for "remove all line breaks from string"

0

remove all new line and other in string using java

// #5
text = text.replaceAll("\R", " ");
Posted by: Guest on October-07-2021
0

Using rstrip() method to remove the newline character from a string

# rstrip() method to remove trailing newline character from a string
text= "Welcome to Python Programming n"
print(text.rstrip())
Posted by: Guest on December-10-2021

Code answers related to "remove all line breaks from string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language