I wanted to make a smart group that contains all files which are named with a certain format. That is, I have a whole bunch of files that have names which begin with dates, e.g. 1932-2-22 or 1932-5 (some don’t have days). Is there a way for a smart group to filter files so that I can get those that have the date format YYYY-M?
I don’t think it’s possible to match a pattern that specific because (AFAICT) the ‘-’ character is ignored in searches. For example, a name search for “wi-fi” matched documents containing “wi-fi” and “wifi” in their names.
Surprisingly, I couldn’t find any documentation (e.g. in the built-in help appendix) specifically mentioning which characters are ignored in searches. Hopefully DTech will document that information or make it easier to find if it already exists.
Try “[0-9][0-9][0-9][0-9] [0-9]*” (with the quotes). That’s looking for a phrase (multiple words separated by non alphanumeric characters).
On the other hand, a search like word1-word2 is basically identical to word1word2 OR “word1 word2”. Very useful to search for certain words with different spellings, e.g. e-mail, DEVON-think, DEVON-technologies etc.
…that’s pretty slick. It does the a pretty good job of returning the right files.
the only extras i get now have something like 1945. 6 (yes with a space there too) or 8902,2 or 2980/ 9 .
In the future, is it better to code using searchable signs, like slashes or backslashes or commas? Or, perhaps it’s possible to sift the other number sequences which are non linked by dashes, such as a string of “NOT” commands like, perhaps?
Is there a single pattern that matches “wifi” and “wi-fi”?
I’m puzzled by differences in results using Tools -> Search… (Shift-Command-F) vs. a Name matches pattern Smart Group …
A Shift-Command-F search for “wifi” (and “Search for: Name” set) will find a Web Archive document named:
Agile Web Solutions Support Forums - View Single Post - WiFi sync broken with B25
… but a Name matches wifi Smart Group doesn’t, even if Kind is Web Archive is explicitly set.
A Shift-Command-F search for “wi-fi” finds that same WA document and a Bookmark document with “Wi-Fi” in its name, but a Name matches wi-fi SG only finds the latter. Also, when this SG is created it doesn’t display the number of documents matched until it’s expanded (and still displays that number after it’s collapsed). Also, Right-Arrow will expand the SG but Left-Arrow doesn’t collapse it; I reported that problem several months ago. Also, the expanded SG will be collapsed after closing and reopening the db. More issues there than just the non-matching WA document.