2013年11月4日星期一

Java language, using regular expression to filter text / expressions label

Grab microblogging Bowen , into text, it will become the expression / expression such as : good weather today , ah, very happy very happy / Smile / Smile
how to use regular expressions to remove / Smile / Smile that removes all the " / expressions " tab.
------ Solution ---------------------------------------- ----
If all expressions are represented by two characters , then you can as follows:
" The weather today is good ah , very happy very happy / Smile / Smile ". replaceAll ("/ [\ u4E00-\ u9FB0] {2}", "") < br> ------ For reference only ---------------------------------------
Thank you ~ This very helpful to me

没有评论:

发表评论