TGTGInsighttelegram intelligenceLIVE / telegram public index
Post content
帖子内容
VS Code 中,如果文件内容是“a ab”,搜索“a|ab”,同时选中 Match Whole Word 和 Use Regular Expression 两个选项,居然只会匹配 a,不会匹配 ab。 (推测原因为 VS Code 实现成了先匹配,再过滤出 whole word 的结果,而不是在匹配阶段就考虑到 whole word 这个限制条件。) 补充:不开 Match Whole Word 的话,匹配的是 aab。感觉这个也比较坑,会导致 http|https 只会匹配上“https”中的“http”。