摘要:先行断言 先行断言(?=表达式) 表达匹配表达式前面的位置 var str = 'I am siqang while u are reading'; var reg = /\b\w+(?=\q)/g; console.log(str.match(reg)); //si//表示匹配表达式q前面的字符
阅读全文
posted @ 2020-10-24 17:28
posted @ 2020-10-24 17:28
posted @ 2020-10-19 17:31
posted @ 2020-10-18 17:31
posted @ 2020-10-18 13:29
posted @ 2020-10-17 17:40
posted @ 2020-10-17 09:52