[help] is there a detailed topic for using regex inside everything ??

Discussion related to "Everything" 1.5 Alpha.
Post Reply
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

[help] is there a detailed topic for using regex inside everything ??

Post by asamirid »

greetings ..

is there a topic here help and explain how everything handle regex search strings.

i understand regex in py developing and in text search and clean up..

but more insights can help ..
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] is there a detailed topic for using regex inside everything ??

Post by void »

Everything uses Perl Compatible Regular Expressions (PCRE)

To view basic regex information from within Everything:
Everything -> Help -> Regular Expression Syntax



Everything will use pure regular expressions when Search -> Regular Expressions is enabled.
The Everything syntax will not work when Regular Expressions is enabled.

space | " < >
are treated literally or as regex operators.

Example:
abc|123
^ $



To use regular expressions when Search -> Regular Expressions is disabled, use the regex: search modifier.

space | " < >
are Everything search operators.

Example:

regex:"abc|123"
regex:abc"|"123
regex:"^ $"
regex:^" "$
regex:"abc \d\d\d" *.mp3
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [help] is there a detailed topic for using regex inside everything ??

Post by asamirid »

thank you void that was helpful ..

can anyone help please and explain to me what is different between

regex:"abc|123"
regex:abc"|"123


they both looks logically the same and i tested them on some random data and both gave the same results..
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] is there a detailed topic for using regex inside everything ??

Post by void »

"abc|123" is the same as abc"|"123

Quotes can appear anywhere.

Operators inside quotes are treated as literal.

A starting double quote and a closing double quote must be used to define literal text.
Post Reply