about
Option 1
You could choose an Escape Character (or combination of) \ / : * ? " < > | to have special meaning and add it to Everything Search Syntax:
|||^startOfFilename
endOfFilename|||$
I guess it will require more discussion about solving syntax problems like this.
Option 2 - using regex differently:
viewtopic.php?f=2&t=6902#p22204
[Suggestion] about Match start/end of filename with ^/$ sign
[Suggestion] about Match start/end of filename with ^/$ sign
Last edited by Stamimail on Tue Mar 30, 2021 12:50 pm, edited 1 time in total.
Re: [Suggestion] about Match start/end of filename with ^/$ sign
Everything has the following search modifiers:
startwith:
endwith:
A shorter version might be useful, for example:
^:startOfFilename
$:endOfFilename
All of these \ / : * ? " < > | characters are currently used for the Everything syntax.
An option to toggle regex with a @regex-search: might work, where any text between @ and : is treated as regex.
for example:
@^:startOfFilename
endOfFilename@$:
"@^:C:\Program Files\Everything 1.@[4|5]:"
@ is probably not the right character, but you get the idea.. &...: is reserved for character entities, #...: is reserved for the preprocessor.
Ideally you would want to use a character that is not in the regex syntax: ~ @ %
-There needs a way to escape : for regex.. eg: @colon:
-A on/off toggle might work to avoid @...: matching a legitimate search, eg: @Q:regex-search@E:
If you enable match_end_of_filename_with_dollar_sign or match_start_of_filename_with_caret, you can always escape ^ and $ with double quotes.
The ^ must appear at the start of the term, and the $ at the end of the term, so these searches are unlikely to conflict with normal searches.
Thanks for the suggestions!
startwith:
endwith:
A shorter version might be useful, for example:
^:startOfFilename
$:endOfFilename
All of these \ / : * ? " < > | characters are currently used for the Everything syntax.
An option to toggle regex with a @regex-search: might work, where any text between @ and : is treated as regex.
for example:
@^:startOfFilename
endOfFilename@$:
"@^:C:\Program Files\Everything 1.@[4|5]:"
@ is probably not the right character, but you get the idea.. &...: is reserved for character entities, #...: is reserved for the preprocessor.
Ideally you would want to use a character that is not in the regex syntax: ~ @ %
-There needs a way to escape : for regex.. eg: @colon:
-A on/off toggle might work to avoid @...: matching a legitimate search, eg: @Q:regex-search@E:
If you enable match_end_of_filename_with_dollar_sign or match_start_of_filename_with_caret, you can always escape ^ and $ with double quotes.
The ^ must appear at the start of the term, and the $ at the end of the term, so these searches are unlikely to conflict with normal searches.
Thanks for the suggestions!
Re: [Suggestion] about Match start/end of filename with ^/$ sign
Searching in my Everything:The ^ must appear at the start of the term, and the $ at the end of the term, so these searches are unlikely to conflict with normal searches.
Code: Select all
endwith:$|startwith:^
Re: [Suggestion] about Match start/end of filename with ^/$ sign
... which you would be able to find with the following query
if you had match_start_of_filename_with_caret and match_end_of_filename_with_dollar_sign enabled.
^^ | $$
if you had match_start_of_filename_with_caret and match_end_of_filename_with_dollar_sign enabled.
Re: [Suggestion] about Match start/end of filename with ^/$ sign
There's also:
startOfFilename*
*endOfFilename
startOfFilename*
*endOfFilename
Re: [Suggestion] about Match start/end of filename with ^/$ sign
... when Match whole filename when using wildcards is enabled.
Re: [Suggestion] about Match start/end of filename with ^/$ sign
How Web Search Engines handle Match start/end of keywords?
Re: [Suggestion] about Match start/end of filename with ^/$ sign
They usually don't support start-with/end-with.
I've seen other search engines use regex:^startOfFilename (the same as Everything)
There's the Search -> Match Prefix / Suffix option in Everything.
These options might give 'good enough' start-with/end-with results without having to know any Everything search syntax.
I've seen other search engines use regex:^startOfFilename (the same as Everything)
There's the Search -> Match Prefix / Suffix option in Everything.
These options might give 'good enough' start-with/end-with results without having to know any Everything search syntax.