search for only items beginning with phrase
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
search for only items beginning with phrase
Hi, I would like to search for only file names that begins with 'metal-', but not anything that contains 'metal-', how should i do that?
Re: search for only items beginning with phrase
Please try the following search:
metal-* !metal-*metal-*
* = match any character any number of times and enables full name matching.
! = NOT
metal-* !metal-*metal-*
* = match any character any number of times and enables full name matching.
! = NOT
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
Re: search for only items beginning with phrase
worked perfectly thank you.
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
Re: search for only items beginning with phrase
hi I would like to follow up by asking if there is any way to filter out results that begins with numbers (i.e. 1-9) in a search?
Re: search for only items beginning with phrase
!regex:^[1-9]
! = NOT
regex: = enable regular expressions
^ = match start of filename
[1-9] = match a single character from a set (1-9)
! = NOT
regex: = enable regular expressions
^ = match start of filename
[1-9] = match a single character from a set (1-9)
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
Re: search for only items beginning with phrase
for some reason it is still showing in the results, am I doing something wrong?
Re: search for only items beginning with phrase
You most likely have match path enabled from the Search menu.
Please try the following search:
!regex:name:^[1-9]
Please try the following search:
!regex:name:^[1-9]
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
Re: search for only items beginning with phrase
I did have match path enabled before, but even when i turn it off the results still will not filter out the intended files
Re: search for only items beginning with phrase
Filenames starting with 0 are still included.
To exclude 0-9:
!regex:name:^[0-9]
-or-
!regex:name:^\d
\d = a single digit
To exclude 0-9:
!regex:name:^[0-9]
-or-
!regex:name:^\d
\d = a single digit
-
- Posts: 10
- Joined: Sat Mar 23, 2024 8:52 am
Re: search for only items beginning with phrase
oh I have overlooked '0', it works now as expected thank you.