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
".
精彩评论