date AND regex

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
jsampson45
Posts: 19
Joined: Mon Sep 21, 2015 8:32 pm

date AND regex

Post by jsampson45 »

Is it possible to specify dates or date ranges for filenames specified by regexes? If so, what is the syntax?
I tried, for example, "Macro.*txt datecreated:7/1/2025" but it failed to find the file. It was able to find the file if its name was typed out in full.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: date AND regex

Post by NotNull »

After enabling the regex filter, all search text will be considered to be part of the regular expression, even datecreated:7/1/2025

Instead, try the following:
- Set the filter to Everything
- Type or paste the following in the searchbar:

Code: Select all

regex:"Macro.*txt"  datecreated:7/1/2025
This will treat the entire search as a "normal" search, except for the first part which is specified to be a regular expression.
jsampson45
Posts: 19
Joined: Mon Sep 21, 2015 8:32 pm

Re: date AND regex

Post by jsampson45 »

Many thanks for this - it will be very useful.
Post Reply