Skip to content

Instantly share code, notes, and snippets.

@sjyun
Created May 26, 2018 05:39
Show Gist options
  • Save sjyun/e2182655befb9b38be54faa35f6e581e to your computer and use it in GitHub Desktop.
Save sjyun/e2182655befb9b38be54faa35f6e581e to your computer and use it in GitHub Desktop.
이모지 제거테스트
public static void main(String ar[]){
String serializeString = "😂\uD83D\uDE4F😁제목😁\uD83D\uDE35\uD83D\uDE01";
System.out.println("init" + serializeString);
String ret = serializeString.replaceAll("[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]", "");
System.out.println("ret" + ret);
System.out.println(System.getProperty("java.io.tmpdir"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment