正则学习笔记
正则学习
https://developer.mozilla.org/zh-cn/docs/web/javascript/guide/regular_expressions
https://www.runoob.com/regexp/regexp-metachar.html
?:
'123212'.replace(/1(?:2)/g,'a') //a32a 匹配的是所有12字符串
?=
'123212'.replace(/1(?=2)/.
原创
2021-01-22 22:39:43 ·
92 阅读 ·
0 评论