Remove Non-ASCII Chars
Quick snippet to remove non-ascii characters from a java string:
String clean = dirty.replaceAll("\\P{ASCII}+", "");
About this entry
You’re currently reading “Remove Non-ASCII Chars,” an entry on Elegando
- Published:
- 08.25.08 / 7am
- Category:
- Java
No comments
Jump to comment form | comments rss [?]