Filter out any file with certain 4 characters at the start?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
drivingherethere
Posts: 4
Joined: Tue Jan 31, 2023 8:43 am

Filter out any file with certain 4 characters at the start?

Post by drivingherethere »

Hello everyone, can someone please help me filter out any file that has numbers in its first 3 characters and the 4th character is a space? Below example means any file except for "50a picture.jpg" should be filtered out because the third character in its file name is not a number.

Code: Select all

921 song.mp3
50a picture.jpg
214 animation.gif
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filter out any file with certain 4 characters at the start?

Post by void »

Please try the following search:

regex:"^\d\d\d "

regex: = enable regular expressions.
^ = match the start of the filename.
\d = match a single digit (0-9)
Use double quotes to escape the space



If you want to exclude these files, use the NOT operator: !

!regex:"^\d\d\d "
drivingherethere
Posts: 4
Joined: Tue Jan 31, 2023 8:43 am

Re: Filter out any file with certain 4 characters at the start?

Post by drivingherethere »

Thank you so much
Post Reply