Search Regex vs regex
Result: Screen Shot 2017-09-16 at 23.33.54 2
---
Why does this work; Enable Regex from Search menu (Ctrl+R)
^screen shot.*\s\d\d.\d\d.\d\d\s2$
Where these do not
regex:(^Screen Shot.*\s\d\d\.\d\d\.\d\d\s1$)
Oh, so I have to escape the space between Screen and Shot (or "." it).
regex:(^Screen\sShot.*\s\d\d\.\d\d\.\d\d\s2)
Alternatively I could use quotes
regex:"Screen Shot.*\s\d\d.\d\d.\d\d 2"
hmm.
Search Regex vs regex:
Re: Search Regex vs regex:
When regex is disabled, the normal Everything search syntax applies.
space = AND
For example, search for regex:abc and the text 123:
regex:abc 123
Use double quotes to escape spaces and |s.
Please try searching for:
regex:^screen" "shot.*\s\d\d.\d\d.\d\d\s2$
or:
regex:"^screen shot.*\s\d\d.\d\d.\d\d\s2$"
regex:(abc 123) is still two terms, regex:(abc AND 123)
regex:<abc 123> is still two terms, regex:abc AND regex:123
I am going to allow regex: to eat the | in the next version of Everything, but not a space. You will need to continue to escape spaces when using regex:
space = AND
For example, search for regex:abc and the text 123:
regex:abc 123
Use double quotes to escape spaces and |s.
Please try searching for:
regex:^screen" "shot.*\s\d\d.\d\d.\d\d\s2$
or:
regex:"^screen shot.*\s\d\d.\d\d.\d\d\s2$"
regex:(abc 123) is still two terms, regex:(abc AND 123)
regex:<abc 123> is still two terms, regex:abc AND regex:123
I am going to allow regex: to eat the | in the next version of Everything, but not a space. You will need to continue to escape spaces when using regex:
Re: Search Regex vs regex:
Adding Foreground color and/or Background color to Search Edit, is this an option to get over such misunderstanding?
In this case the user will be able to distinguish where the function was ended.
In this case the user will be able to distinguish where the function was ended.
Re: Search Regex vs regex:
Ah, OK, that makes sense (though I will reread it a few more times).
Now, lets hope I will remember this the next time I run into it .
Now, lets hope I will remember this the next time I run into it .