1、电话号码校验 /^((0\d{2,3}-\d{7,8})|(1[3456789]\d{9}))$/ 2、匹配某个特地字符串之前和之后的内容 /(\S*)\*(\S*)/ // 使用match捕获 str..match(/(\S*)\*(\S*)/)