xxleyi / learning_list

聚集自己的学习笔记
10 stars 3 forks source link

JS 正则断言(环视) #224

Open xxleyi opened 4 years ago

xxleyi commented 4 years ago

断言(也被叫做环视)语法

各门编程语言对环视的支持情况不太一样,前瞻比较容易实现,后瞻难一些。

JS 正则可视化工具:https://uzitech.github.io/regexper/

Lookbehind is now an official part of the ES 2018 specification. Axel Rauschmayer gives a good introduction in his blog post.