Regex not working

Discussion related to "Everything" 1.5.
monke
Posts: 8
Joined: Tue May 05, 2026 1:37 pm

Regex not working

Post by monke »

I have the following directory structure:

Dir new
Dir 1 old
Dir 2
Dir 3 old
...


I need a regex query that will return Dir, Dir1 and Dir 3. Below is the query I tried:

Code: Select all

E:\archive\ folder: regex:".*[A-Za-z0-9]\s(new|old)"
But that returns no results.
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regex not working

Post by void »

Please try:

Code: Select all

E:\archive\ folder: regex:"[0-9]?\s(new|old)"
monke
Posts: 8
Joined: Tue May 05, 2026 1:37 pm

Re: Regex not working

Post by monke »

I'm sorry! I just realized I had "Audio" filter selected in the dropdown next to the search box. Must've hit that by accident. I've set it back to "Everything" and now it's working beautifully... almost. It's also returning Dir 4 NEW (note the capital letters). Is Everything's regex flavor not case-sensitive?
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regex not working

Post by void »

By default regex is case insensitive.

For case sensitivity, please specify case:

For example:

Code: Select all

E:\archive\ folder: case:regex:"[0-9]?\s(new|old)"