const str = "刘 显飞 (Liu XianFei)";
const pattern = /[\u4e00-\u9fa5]+/g; // 匹配中文字符的正则表达式
const result = str.match(pattern).join(""); // 使用 match 方法匹配中文字符,并使用 join 方法将数组转换为字符串
console.log(result); // 输出:刘显飞
const str = "刘 显飞 (Liu XianFei)";
const pattern = /[\u4e00-\u9fa5]+/g; // 匹配中文字符的正则表达式
const result = str.match(pattern).join(""); // 使用 match 方法匹配中文字符,并使用 join 方法将数组转换为字符串
console.log(result); // 输出:刘显飞