Sunday, June 14, 2009

remove unwanted chars (new line,tab) in java

String truncated = originalString.replaceAll("\\p{Cntrl}", "");

No comments:

Post a Comment