Search for [a-z] (regex) ignoring letters in the file extension
Search for [a-z] (regex) ignoring letters in the file extension
I need to avoid results like 123.txt, because the file name does not contain any letters.
Re: Search for [a-z] (regex) ignoring letters in the file extension
It looks like this will work - BUT - for files that DO NOT have an extension, .
CPCNTRL, would not be found, letters only, but no extension.
So, this might be it,.
But that's still not right. There is a difference from above, but still not finding files with no extension?
A-z makes it "case insensitive" (but might pick up things between Z and A) - check an ascii chart?
(If someone is fast, I'll see the answer before I go .)
regex:[a-z]\.
CPCNTRL, would not be found, letters only, but no extension.
So, this might be it,
regex:[a-z].*\.
But that's still not right. There is a difference from above, but still not finding files with no extension?
A-z makes it "case insensitive" (but might pick up things between Z and A) - check an ascii chart?
(If someone is fast, I'll see the answer before I go .)
Re: Search for [a-z] (regex) ignoring letters in the file extension
So it looks like Everything does not have a special function or setting to exclude file extensions from search?
Re: Search for [a-z] (regex) ignoring letters in the file extension
Did you try any of the suggestions? And where gave it unexpected results? What were these results?
Re: Search for [a-z] (regex) ignoring letters in the file extension
I did try. works well, but this dot business still complicates things. In ABC123.txt it will highlight ABC123, while I need it to highlight just ABC.
My ultimate goal is to find files that contain both letters and digits in the file name (especially cases where they are in the same word).
Code: Select all
regex:[a-z].*\.
My ultimate goal is to find files that contain both letters and digits in the file name (especially cases where they are in the same word).
Re: Search for [a-z] (regex) ignoring letters in the file extension
Please try the following search:contain both letters and digits in the file name (especially cases where they are in the same word)
regex:\b([a-z]+[0-9]+|[0-9]+[a-z]+)[a-z0-9]*\b.*\.[^.]*$
regex: = enable regular expressions.
\b = match a word boundary.
( ) = grouping.
[a-z]+ = match a-z one or more times.
[0-9]+ = match 0-9 one or more times.
| = OR
[a-z0-9]* = match 0-9 or a-z zero or more times.
.* = match any character any number of times.
\. = match a single literal .
[^.]* = match the extension (no dot)
$ = match the end of the filename.
What version of Everything are you using?
To show the matching word in a new column, please try the following Everything 1.5 search:
regex:\b(([a-z]+[0-9]+|[0-9]+[a-z]+)[a-z0-9]*)\b.*\.[^.]*$ addcol:regmatch1
no-highlight:
Re: Search for [a-z] (regex) ignoring letters in the file extension
Thanks a lot, it works great! I am using 1.5.0.1321a x64, but adding addcol:regmatch1 makes the search empty.
Re: Search for [a-z] (regex) ignoring letters in the file extension
Right, works in 1346a.