import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Example {
public static void main(String[] args) {
final String regex = "[\\u\\{1f300\\}-\\u\\{1f5ff\\}\\u\\{1f900\\}-\\u\\{1f9ff\\}\\u\\{1f600\\}-\\u\\{1f64f\\}\\u\\{1f680\\}-\\u\\{1f6ff\\}\\u{2600}-\\u\\{26ff\\}\\u{2700}-\\u\\{27bf\\}\\u\\{1f1e6\\}-\\u\\{1f1ff\\}\\u\\{1f191\\}-\\u\\{1f251\\}\\u\\{1f004\\}\\u\\{1f0cf\\}\\u\\{1f170\\}-\\u\\{1f171\\}\\u\\{1f17e\\}-\\u\\{1f17f\\}\\u\\{1f18e\\}\\u{3030}\\u\\{2b50\\}\\u\\{2b55\\}\\u{2934}-\\u{2935}\\u\\{2b05\\}-\\u\\{2b07\\}\\u\\{2b1b\\}-\\u\\{2b1c\\}\\u{3297}\\u{3299}\\u\\{303d\\}\\u\\{00a9\\}\\u\\{00ae\\}\\u{2122}\\u\\{23f3\\}\\u\\{24c2\\}\\u\\{23e9\\}-\\u\\{23ef\\}\\u\\{25b6\\}\\u\\{23f8\\}-\\u\\{23fa\\}]";
final String string = "đđ°đ§đ¨đŠđ§đ¤đī¸ đ ââ¨ī¸đēī¸đđĨâī¸đđĻđˇī¸đĩđđâī¸â¤ī¸âĄī¸â°ī¸â¤´ī¸âŋī¸âī¸ãī¸đđđ
ąī¸đã°ī¸â¤ĩī¸âŦī¸ãŊī¸âī¸đâŠī¸ÂŠī¸âī¸âĒī¸âī¸âēī¸âļī¸ÂŽī¸âĸī¸âŗī¸";
final Pattern pattern = Pattern.compile(regex, Pattern.UNICODE_CASE);
final Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
System.out.println("Full match: " + matcher.group(0));
for (int i = 1; i <= matcher.groupCount(); i++) {
System.out.println("Group " + i + ": " + matcher.group(i));
}
}
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Java, please visit: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html