1// emoji regexp
2// \{1F300}-\x{1F64F}\x{1F680}-\x{1F6FF}\x{2600}-\x{2B55}
3emoji := `😂`
4if matched := regexp.
5 MustCompile(`^[a-zA-Z0-9_\p{Han}\{1F300}-\x{1F64F}\x{1F680}-\x{1F6FF}\x{2600}-\x{2B55}]{1,20}$`).
6 Match([]byte(emoji)); true {
7 log.Println(matched)
8}