Open shfshanyue opened 3 years ago
/\p{Unified_Ideograph}/u
var pattern1 = /[\u4e00-\u9fa5]+/g; var contents = "[微笑][撇嘴][发呆][得意][流泪]"; var content = contents.match(pattern1);
/\p{Unified_Ideograph}/u