RT
<script>
let reg = "abca";
console.log(reg.match(/(a)/));
console.log(reg.match(/(?:a)/));
console.log(reg.match(/(?=a)/));
console.log(reg.match(/(?!a)/));
</script>
RT
<script>
let reg = "abca";
console.log(reg.match(/(a)/));
console.log(reg.match(/(?:a)/));
console.log(reg.match(/(?=a)/));
console.log(reg.match(/(?!a)/));
</script>
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答873 阅读✓ 已解决
6 回答1k 阅读
2 回答1.3k 阅读✓ 已解决