import re
s = u"你好,世界!"
p = re.compile(r"[\u4e00-\u9fa5]+")
result=p.findall(s)
print(result)
执行结果
python中使用正则表达式查找中文
猜你喜欢
转载自www.cnblogs.com/linle/p/10440373.html
今日推荐
周排行