trying to find (with regex) six capital letters in a row

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
dwilbank
Posts: 16
Joined: Sat Jun 28, 2014 2:37 pm

trying to find (with regex) six capital letters in a row

Post by dwilbank » Thu Aug 22, 2019 1:01 am

this

Code: Select all

regex:[A-Z]{6}
pulls up every file with six capital or lowercase letters in a row - mixed

Do the square bracket classes work in Everything?

void
Site Admin
Posts: 4851
Joined: Fri Oct 16, 2009 11:31 pm

Re: trying to find (with regex) six capital letters in a row

Post by void » Thu Aug 22, 2019 1:29 am

The regex: modifier uses the current "Match Case" setting from the Search menu.

Please try searching for:
case:regex:[A-Z]{6}

the case: modifier will enable case matching, or alternatively, enable Match Case from the Search menu.

dwilbank
Posts: 16
Joined: Sat Jun 28, 2014 2:37 pm

Re: trying to find (with regex) six capital letters in a row

Post by dwilbank » Thu Aug 22, 2019 2:26 am

boom! I got results!

thanks sir

therube
Posts: 2309
Joined: Thu Sep 03, 2009 6:48 pm

Re: trying to find (with regex) six capital letters in a row

Post by therube » Thu Aug 22, 2019 10:21 am

And case: has to be "directly connected" to regex: (no intervening space).
"case:regex:" vs "case: regex:"

Why is that?

void
Site Admin
Posts: 4851
Joined: Fri Oct 16, 2009 11:31 pm

Re: trying to find (with regex) six capital letters in a row

Post by void » Thu Aug 22, 2019 10:32 am

modifiers must prefix a search term.

Everything treats spaces as the AND operator.

eg:
case: regex:

expands to:
case: AND regex:

case: on its own is the same as case:"" or an empty search term, which will match everything.

Post Reply