summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-07-16 22:38:12 +0200
committerPaolo Bonzini <bonzini@gnu.org>2010-07-16 22:39:15 +0200
commit3569576a3304b51491be0a88d4659713d960674f (patch)
tree59f2cf6be139db6eff7551ae3d0b73381673ddb6 /doc
parent28ec5d35539fd63d8914517e59de8c6f5082dab9 (diff)
downloadgrep-3569576a3304b51491be0a88d4659713d960674f.tar.gz
doc: document \s and \S
* doc/grep.texi (The Backslash Character and Special Expressions): Document \s and \S escapes.
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/grep.texi b/doc/grep.texi
index 9ee4bc46..890ba1b2 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -1334,6 +1334,12 @@ Match word constituent, it is a synonym for @samp{[[:alnum:]]}.
@item @samp{\W}
Match non-word constituent, it is a synonym for @samp{[^[:alnum:]]}.
+@item @samp{\s}
+Match whitespace, it is a synonym for @samp{[[:space:]]}.
+
+@item @samp{\S}
+Match non-whitespace, it is a synonym for @samp{[^[:space:]]}.
+
@end table
For example, @samp{\brat\b} matches the separate word @samp{rat},