[help] how to search file content by line using <a b|c !d> syntax?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

[help] how to search file content by line using <a b|c !d> syntax?

Post by iamqz »

i want to seach a file content line that match condition for example <a b> ,
i use content:<a b> , but i will match such content:
aaaaaaaaaaaaa
bbbbbbbbbbbb
("a" and "b" are not in same line) ,

i use regex:content:a.*b , it work , but i will not match line like this : "bbb aaa" (a is after b)
if i use regex assert syntax (?=.*a)(?=.*b) , it is so complexity,

so i want to know how to search content by line using <a b c|d !e> such simple syntax ?

thanks! thanks! thanks!πŸ’•πŸ˜Š
void
Developer
Posts: 16450
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] how to search file content by line using <a b|c !d> syntax?

Post by void »

regex is most likely the best option here:

regex:content:(a.*b)|(b.*a)



Everything is not really "content line" aware.
I'll look into adding a contentline: search function.
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

Re: [help] how to search file content by line using <a b|c !d> syntax?

Post by iamqz »

thanks!
actually my search condition maybe very complex ,for example: <a b c d e f g h|i j|k l|m|n !o !p !d> πŸ˜‚
in this case it is hard to write regex,
so it is very necessary to add contentline: function ,
hope to use it!
thanks! thanks! thanks! πŸ˜„πŸ˜˜πŸ˜˜πŸ˜˜
void
Developer
Posts: 16450
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] how to search file content by line using <a b|c !d> syntax?

Post by void »

Everything 1.5.0.1322a adds an eachline: search modifier.

Example usage:


eachline:content:<a b>
eachline:content:<a b c d e f g h|i j|k l|m|n !o !p !q>
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

Re: [help] how to search file content by line using <a b|c !d> syntax?

Post by iamqz »

eachline: work well !
thank you very very very much!πŸ˜πŸ’•πŸ’•πŸ’•
Post Reply