Hi I want to search text inside gvim with the following criteria a&b&(c|d).I know for a&b it is /.*a\&.*b and for c|d it is /c\|d but combining these two doesnt work.what can be the exact command ?edit: I tried .*a\&.*b\&.*(c\|d), but it is taking it as .*a\&.*b\&.*(c ORed with d) , inc brackets.edit2: breaking the expression to a&b&c|a&b&d is working,.*a\&.*b\&.*c\|.*a\&.*b\&.*d , but thats not something I am looking for.
gvim search query for mixed AND & OR conditions
search
From :help \&:2. A branch is one or more concats, separated by \&.  It matches the last   concat, but only if all the preceding concats also match at the same   position.  Examples:    foobeep\&... matches foo in foobeep.    .*Peter\&.*Bob matches in a line containing both Peter and BobI want to search lines with following criteria, USB & LENGTH should  definitly be there along with either RX or TX.So it seems impossible that any text would match USB AND LENGTH. You would probably use something like:\(USB.*LENGTH\).*\(RX\|TX\)or, using \v to reduce the escaping:\v(USB.*LENGTH).*(RX|TX)If you meant USB and LENGTH but in any order:\v(.*USB&.*LEN).*(RX|TX)