@mangoohohoho
var str = "1a2b3c4d5e";
var patt = new RegExp(/\d\w\d/,"g");
var result;
while ((result = patt.exec(str)) ) {
patt.lastIndex=patt.lastIndex-2;
document.write(result);
document.write("<br />");
}
var str = "1a2b3c4d5e";
var patt = new RegExp(/\d\w\d/,"g");
var result;
while ((result = patt.exec(str)) ) {
patt.lastIndex=patt.lastIndex-2;
document.write(result);
document.write("<br />");
}
2017-11-06
花了一个小时终于把regexper安好了,流程大致是:下载Nodejs安装包(我是windows环境)->安装时勾选环境选项->cmd中通过npm全局安装yarn包($ npm install -g yarn)->cd到regexper文件根目录->安装README上的说明运行$ yarn install,再运行$ yarn start即可->http://localhost:8080/
2017-10-29