JS 正则匹配中文
Oct 12, 2022
3 min read
const
reg
=
/[\u4e00-\u9fa5]+/gm
;
const
result
=
line
.
match
(
reg
);