Rock never dies \m/
Showing posts with label
regex
.
Show all posts
Showing posts with label
regex
.
Show all posts
Friday, August 15, 2014
Replace end of line (CR/LF carriage return/new line) characters in a file or string using java
Replace end of line (CR/LF) characters in string with another character 'A'
desc = desc.replaceAll("\\r?\\n", "A");
where desc is a String variable.
Older Posts
Home
Subscribe to:
Posts (Atom)