且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

正则表达式过滤器在 Sublime Text 搜索中不起作用

更新时间:2023-02-26 15:54:09

我建议使用 (?-i)(?-i:...) 以避免选项出现问题,并使用 + 而不是 {1,} 提高可读性(恕我直言).

I suggest turning off case insensitivity inside the regex pattern with (?-i) or (?-i:...) to avoid issues with the options, and also using a + instead of {1,} increases readability (IMHO).

'(?-i)[a-z]+[A-Z][A-Za-z]+'

即使未启用 Aa(区分大小写的搜索),模式仍以区分大小写的方式处理.

Even though the Aa (case sensitive search) is not enabled, the pattern is still handled in a case sensitive way.