Quantcast
Channel: Remove end of line characters from end of Java String - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Remove end of line characters from end of Java String

$
0
0

I have a string which I'd like to remove the end of line characters from the very end of the string only using Java

"foo\r\nbar\r\nhello\r\nworld\r\n"

which I'd like to become

"foo\r\nbar\r\nhello\r\nworld"

(This question is similar to, but not the same as question 593671)


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images