开发者

Find quoted strings with only lower case letters?

开发者 https://www.devze.com 2023-01-30 02:40 出处:网络
In visual studio 2005 I try to find all strings with the \"Find in Files\" dialog that contains only lower case letters, using the following regexp:

In visual studio 2005 I try to find all strings with the "Find in Files" dialog that contains only lower case letters, using the following regexp:

\"[a-z\开发者_JS百科.]+\"

But I get both lower and upper case quoted strings. Is the regexp wrong in someway ?


Since you can't use modifiers, use the "Match Case" option.

Also . doesn't work in character classes (i.e. [...]). It's seen as a regular dot.


The regex "[a-z]+" would normally only match lower case letters. Visual Studio's Find regex syntax is a bit different though - you need to check the 'Match Case' option, else it'll always do case insensitive matching.


. means "any character other than \n".

0

精彩评论

暂无评论...
验证码 换一张
取 消