gpt4 book ai didi

regex - 使用正则表达式标志修饰符搜索 Visual Studio Code?

转载 作者:行者123 更新时间:2023-12-03 16:51:27 25 4
gpt4 key购买 nike

例如,如何设置i标志执行不区分大小写的匹配?甚至有可能吗?

在代码中,我通常会做类似 /needle/i 的事情

Visual Studio Code documentation仅对它使用 ripgrep 的事实进行传递引用正则引擎。那里的文档也没有帮助我。

最佳答案

在查找面板中,选择“Match Case”选项会将不区分大小写的搜索转换为区分大小写的搜索。因此,如果未选择该选项,则搜索不区分大小写。

find panel: match case

关于regex - 使用正则表达式标志修饰符搜索 Visual Studio Code?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54465608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com