js 匹配中文字符串(也包含日文和韩文)

<script>
    var str="payTypeNam门诊账户
	";
    document.write(str.match(/[u4E00-u9FA5uF900-uFA2D]+/u).toString());
</script>

match() 方法可在字符串内检索指定的值,或找到一个或多个正则表达式的匹配。

JavaScript match() 方法

原文地址:https://www.cnblogs.com/qiushuiblog/p/7066135.html