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.
()
have to be escaped in Vim's regex to be used for grouping,:help /\(
. An unescaped(
or)
matches the literal character.