PPStickerKeyboard icon indicating copy to clipboard operation
PPStickerKeyboard copied to clipboard

匹配表情的正则有问题

Open xuning0 opened this issue 6 years ago • 1 comments

目前的正则是\[.+?\],因为.会匹配任意字符,所以对于字符串xxx[[大笑]xx,会匹配到最外层的[[大笑],而非[大笑]。另外,这个?也多余。 正确的应该对于中括号内只匹配字母和汉字,\[[\u4e00-\u9fa5A-Za-z]+\]

xuning0 avatar Nov 13 '19 07:11 xuning0

大哥,其他合并啊

biostome avatar Jun 16 '21 10:06 biostome