Page 1 of 1

Find: search just for the exact file name

Posted: 03 Feb 2006, 17:32
by thomas_s
Example:

I want to search for CVS directories. But unfortunately 2S also finds directories, which have "cvs" anywhere in the name.

Maybe there is already a possibility to search for the exact name - I just did not found one. If there is none, please add the ability. Thanks in advance.

Tom

Posted: 03 Feb 2006, 18:12
by Jan Rysavy
Find for "CVS." (without quotes).

Posted: 04 Feb 2006, 21:25
by thomas_s
Thanks, that works, but why? Am I right:

- if the pattern contains at least one period, the right period will be trimmed and searched exactly
- if the pattern does not contain a period, 2S searches for "*<pattern>*"?

Tom

Posted: 05 Feb 2006, 18:48
by Jan Rysavy
Hi Tom!

The Windows Find command behaves this way so we were forced to support this "simplified" pattern too.

Rule: if the searched pattern doesn't contain wildcard or period character (* ? .), convert it to *pattern*.