蓝色天空网 · mbsky.com · 学习与实践
JavaScript 正则表达式与标志
本章其他实例
带 g 的 test 会修改 lastIndex
search 返回位置,replace 返回新字符串
正则修饰符、exec结果与捕获
g与gi全部匹配、test失败与exec返回