How to remove non-printable characters from a String (Java)

newString = origString.replaceAll(“[^\p{Print}]”“”);

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Leave a Reply