123456789,4567831 匹配前面的4567还有后面的83
var r = /d{3}4567d{2}[,]d{4}83d/; var e = "123456789,4567831"; console.log(r.test(e));