parent
8e53fba083
commit
9f651f05d5
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ That means you can always use only 1 such an option with logical OR, e.g.
|
||||||
.. Note::
|
.. Note::
|
||||||
If you want logical AND on patterns you should compose 1 appropriate pattern,
|
If you want logical AND on patterns you should compose 1 appropriate pattern,
|
||||||
possibly combined with multi-line mode `(?s)`:literal:.
|
possibly combined with multi-line mode `(?s)`:literal:.
|
||||||
E.g. to require that multi-line context of matches has occurences of
|
E.g. to require that multi-line context of matches has occurrences of
|
||||||
**both** PAT1 and PAT2 use positive lookaheads (`(?=PAT)`:literal:):
|
**both** PAT1 and PAT2 use positive lookaheads (`(?=PAT)`:literal:):
|
||||||
```cmd
|
```cmd
|
||||||
nimgrep --inContext:'(?s)(?=.*PAT1)(?=.*PAT2)'
|
nimgrep --inContext:'(?s)(?=.*PAT1)(?=.*PAT2)'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue