js用正则表达式查找中文

var content = "awfjawf测试wfewef";
var ret = /\p{Unified_Ideograph}+/u.exec(content);

 

posted @ 2020-02-13 10:25  IWing  阅读(...)  评论(...编辑  收藏