I want to remove all special characters from the string except numbers and normal az characters.
I do it like this:
text = text.replaceAll("[^a-zA-Z0-9 ]+", "");
The problem with this method is that it will also delete all non-Latin characters, such as è, é, ê, ë and many others.
Non-specific characters (the ones I want to keep) I mean all numbers and all alphabetic characters for all languages, or at least as many as possible.
How to remove only special characters?
Aki k source
share