This will search and replace all non ASCII letters:
String resultString = subjectString.replaceAll("[^\\x00-\\x7F]", "");
More Related Contents:
- Java how to replace 2 or more spaces with single space in string and delete leading and trailing spaces
- Replace the last part of a string
- Java String.replace/replaceAll not working
- String.replaceAll is considerably slower than doing the job yourself
- Remove all occurrences of \ from string
- incompatible types required char found java.lang.string
- Regex for converting xml tags key to camel case
- How to replace a char with a string
- How to split a string if any chracter is found in java
- Splitting a Java String by the pipe symbol using split(“|”)
- Split string to equal length substrings in Java
- Why does String.split need pipe delimiter to be escaped?
- How to convert a char to a String?
- How to convert a char array back to a string?
- Using Java to find substring of a bigger string using Regular Expression
- How to replace case-insensitive literal substrings in Java
- How to use regex in String.contains() method in Java
- How do I convert CamelCase into human-readable names in Java?
- Remove trailing zero in Java
- How to convert/parse from String to char in java?
- Extract string between two strings in java
- What is the simplest way to convert a Java string from all caps (words separated by underscores) to CamelCase (no word separators)?
- Java String.split() Regex
- Check if string ends with certain pattern
- How do I check if a char is a vowel?
- Remove all non-“word characters” from a String in Java, leaving accented characters?
- How to implement a SQL like ‘LIKE’ operator in java?
- What is the equivalent of Regex-replace-with-function-evaluation in Java 7?
- Raw Strings in Java – for regex in particular. Multiline strings
- How can I remove punctuation from input text in Java?