开发者

Find quoted strings with only lower case letters?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜