js中使用正则
1 2 3 4 5 6 7 8 9
| var text='testing: 1, 2, 3' var pattern= /\d+/g text.split(pattern) pattern.test(text) text.search(pattern) text.match(pattern) text.replace(pattern,'$$$$$$$$$$') text.split(pattern) text.split(/\D+/)
|
本文标题:js中正则使用
文章作者:霖
发布时间:2021年01月16日 - 16时17分
最后更新:2021年01月16日 - 16时25分