微信公衆賬號中使用的QQ表情代碼對照表

面一共列出了105個QQ表情,每一個表情都給出了與之相對應的文字代碼與符號代碼:

向公衆賬號發送一個QQ表情,在後臺程序中接收到的是QQ表情的符號代碼 java

/**
 * 判斷是不是QQ表情
 * 
 * @param content
 * @return
 */
public static boolean isQqFace(String content) {
	boolean result = false;

	// 判斷QQ表情的正則表達式
	String qqfaceRegex = "/::\\)|/::~|/::B|/::\\||/:8-\\)|/::<|/::$|/::X|/::Z|/::'\\(|/::-\\||/::@|/::P|/::D|/::O|/::\\(|/::\\+|/:--b|/::Q|/::T|/:,@P|/:,@-D|/::d|/:,@o|/::g|/:\\|-\\)|/::!|/::L|/::>|/::,@|/:,@f|/::-S|/:\\?|/:,@x|/:,@@|/::8|/:,@!|/:!!!|/:xx|/:bye|/:wipe|/:dig|/:handclap|/:&-\\(|/:B-\\)|/:<@|/:@>|/::-O|/:>-\\||/:P-\\(|/::'\\||/:X-\\)|/::\\*|/:@x|/:8\\*|/:pd|/:<W>|/:beer|/:basketb|/:oo|/:coffee|/:eat|/:pig|/:rose|/:fade|/:showlove|/:heart|/:break|/:cake|/:li|/:bome|/:kn|/:footb|/:ladybug|/:shit|/:moon|/:sun|/:gift|/:hug|/:strong|/:weak|/:share|/:v|/:@\\)|/:jj|/:@@|/:bad|/:lvu|/:no|/:ok|/:love|/:<L>|/:jump|/:shake|/:<O>|/:circle|/:kotow|/:turn|/:skip|/:oY|/:#-0|/:hiphot|/:kiss|/:<&|/:&>";
	Pattern p = Pattern.compile(qqfaceRegex);
	Matcher m = p.matcher(content);
	if (m.matches()) {
		result = true;
	}
	return result;
}






擴展閱讀:
微信公衆賬號開發-符號表情的發送(上)

微信公衆賬號開發-符號表情的發送(下)
相關文章
相關標籤/搜索