var str = "That is a good example.";var re = /is(.*?)mple/;var subStr = str.match(re)[1];console.log(subStr);
运行结果:
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
var str = "That is a good example.";var re = /is(.*?)mple/;var subStr = str.match(re)[1];console.log(subStr);
运行结果: