java - How to remove Miscellaneous Symbols Block from the Unicode String -


i want remove miscellaneous symbols block unicode string using regular expression may try none of them regular expression think current can me issue how can remove miscellaneous symbols block 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 not working how can solve issue.

if input text contains u-escaped characters, text consisting out of backslash, 'u' , 4 hexadecimal digits, convert them first real chars.

input = stringescapeutils.unescapejava(input); // apache commons input = input.replaceall("[\u2600-\u26ff]|[\u2700-\u27bf]", ""); 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -