js正则表达式搜索前缀之正则预查
匹配原理:

正则表达式 配置源 匹配值 解释
/(?<=pre)\d{10}/g pre0010000235 0010000235 取pre后面十位数字
/\w+(?=235)/g pre0010000235 pre0010000 取235前面所有字符
待续。。。
匹配原理:

正则表达式 配置源 匹配值 解释
/(?<=pre)\d{10}/g pre0010000235 0010000235 取pre后面十位数字
/\w+(?=235)/g pre0010000235 pre0010000 取235前面所有字符
待续。。。