const text = "张三,电话:13333333333,地址:北京市海淀区xxx";
const nameRegex = /[^\u4e00-\u9fa5\s]+/; // 匹配中文以外的字符
const phoneRegex = /\d{11}/; // 匹配11位数字
const addressRegex = /[\u4e00-\u9fa5]+/; // 匹配中文
const name = text.match(nameRegex)[0];
const phone = text.match(phoneRegex)[0];
const address = text.match(addressRegex)[0];
console.log("姓名:" + name);
console.log("电话:" + phone);
console.log("地址:" + address);
例如:淘宝,京东,快递。