SyntaxFix
Write A Post
Hire A Developer
Questions
For non-Unicode characters:
String result = Pattern.compile("(?i)????????", Pattern.UNICODE_CASE).matcher(source).replaceAll("???");