I want to remove miscellaneous symbols block from Unicode string
using regular expression may also try but none of them regular expression I think current can anyone help me for this issue how I can remove miscellaneous symbols block from the string.
Unicode String
\u263A\uD83D\uDE0A\uD83D\uDE22)\uD83C\uDF82
Code:
String input = "\u263A\uD83D\uDE0A\uD83D\uDE22)\uD83C\uDF82";
input.replaceAll("[\u2600-\u26FF]|[\u2700-\u27BF]", "");
Expected:
\uD83D\uDE0A\uD83D\uDE22)\uD83C\uDF82
but it will be not working how I can solve this issue.