SOURCE

// let str = 'abc\/b ru?noob'
var str = "北京市海淀区厂洼东一街3号楼(近苏州桥,北京电视台西门对面)";
// var patt1 = /\b[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,6}\b/g;
var patt1 = /.+?(省|市|自治区|自治州|县|区)/g;
console.log(str.match(patt1));
console.log(patt1.exec(str), patt1.exec(str), patt1.lastIndex);
console 命令行工具 X clear

                    
>
console