summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaliy Lotorev <lotorev@gmail.com>2020-05-26 19:58:14 +0000
committerLuca Milanesio <luca.milanesio@gmail.com>2020-10-29 21:36:56 +0000
commite8f6fc93437ac5f510841bc3d6c592c411efabc3 (patch)
tree6ec77e248f6873f5b83a0f99f9e2b0deeaea6619
parentf5d36e49ae0fc4e9e8f61ea258575c17638c730f (diff)
Documentation: Provide examples for advanced regexp searching
dk.brics regexp syntax reference [1] doesn't contain examples. [1] https://www.brics.dk/automaton/doc/index.html?dk/brics/automaton/RegExp.html Change-Id: I9be2a3e4f1f387ec17f1702831a9bbebc85585be
-rw-r--r--Documentation/user-search.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/user-search.txt b/Documentation/user-search.txt
index 48d331b74a..55f668e1d2 100644
--- a/Documentation/user-search.txt
+++ b/Documentation/user-search.txt
@@ -277,6 +277,11 @@ should be double quoted when using more complex construction (like
ones using a bracket expression). For example, to match all XML
files named like 'name1.xml', 'name2.xml', and 'name3.xml' use
`file:"^name[1-3].xml"`.
++
+More examples:
+* `-file:^path/.*` - changes that do not modify files from `path/`,
+* `file:{^~(path/.*)}` - changes that modify files not from `path/` (but may
+contain files from `path/`).
[[file]]
file:'NAME', f:'NAME'::