How to search for a missing year (nnnn) in filenames?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
EveryThinger
Posts: 7
Joined: Wed Jan 18, 2023 9:43 am

How to search for a missing year (nnnn) in filenames?

Post by EveryThinger »

Is it possible to search for filenames that do not include a four-digit year?

I have several hundred PDF files in a specific path (and its subfolders).
Now I have to find the ones that don't have \d{4} in the file name.

How can I do that?
(It doesn't matter whether a regular expression is necessary or not.)
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search for a missing year (nnnn) in filenames?

Post by void »

!regex:\d{4}


! = NOT
EveryThinger
Posts: 7
Joined: Wed Jan 18, 2023 9:43 am

Re: How to search for a missing year (nnnn) in filenames?

Post by EveryThinger »

It works perfectly!
Thank you very much for your prompt response.
Post Reply