In the Mac OS X 10.4 Finder, enclosing the search string in double quotes (e.g. "42") will perform the search only on file names, similar to the search in previous versions of Mac OS X.
[robg adds: I'm not sure if this is a bug or a feature, but it definitely works. If it's a feature, then how do you search content for quoted text?]

