Friday, November 1, 2013

Windows FileSearch

Windows FileSearch (used in FindFirstFile, etc): ? matches 0 or 1 characters; * matches 0 or more characters. The . does not match any . but only signifies the delimiter between name and extension - it is automatically supplied on the right if lacking.

Bug: If a string contains * anywhere on the left of the extension and exactly three characters in the extension, it adds implicit * at end of string, thus matching files with longer extensions.

No comments:

Post a Comment