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!
[help] how to search file content by line using <a b|c !d> syntax?
Re: [help] how to search file content by line using <a b|c !d> syntax?
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.
regex:content:(a.*b)|(b.*a)
Everything is not really "content line" aware.
I'll look into adding a contentline: search function.
Re: [help] how to search file content by line using <a b|c !d> syntax?
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!
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!
Re: [help] how to search file content by line using <a b|c !d> syntax?
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>
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>
Re: [help] how to search file content by line using <a b|c !d> syntax?
eachline: work well !
thank you very very very much!
thank you very very very much!