Skip to content
int3 edited this page Feb 29, 2012 · 14 revisions

Find mode uses smartcase -- it defaults to a case-insensitive search if you use only lowercase characters, but switches to case-sensitive mode upon detecting capital letters. However, you can force case sensitivity by using the \I escape sequence. Hence /test is case-insensitive, /Test is case-sensitive, and both /test\i and /te\ist are case-sensitive and match 'test'.

The \r escape sequence ensures that the search string gets treated like a Javascript regular expression, so /t.st\r matches 'test', 'tast', 'tost', etc.

Blackslashes themselves can be escaped, so /test\\ will match 'test'.

Clone this wiki locally