/** * To determine whether it is QQ expression * * @param content * @return*/Public StaticBooleanIsqqface (String content) {Booleanresult =false; //Regular Expressions for judging QQ expressionsString Qqfaceregex = "/::\\) |/::~|/::b|/::\\| | /:8-\\) |/::<|/::$|/::x|/::z|/:: ' \ \ (|/::-\\| | /::@|/::P |/::D |/::o|/::\\ (|/::\\+|/:--b|/::q|/::t|/:,@p|/:,@-d|/::d |/:,@o|/::g|/:\\|-\\) |/::!| /::l|/::>|/::,@|/:,@f|/::-s|/:\\?| /:,@x|/:,@@|/::8|/:,@!| /:!!!| /:xx|/:bye|/:wipe|/:d ig|/:handclap|/:&-\\ (|/:b-\\) |/:<@|/:@>|/::-O |/:>-\\| | /:P-\\ (|/:: ' \\| | /:x-\\) |/::\\*|/:@x|/:8\\*|/:p d|/:<w>|/:beer|/:basketb|/:oo|/:coffee|/:eat|/:p ig|/: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; } returnresult;}
QQ Emoticons Analysis