From 3569576a3304b51491be0a88d4659713d960674f Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 16 Jul 2010 22:38:12 +0200 Subject: doc: document \s and \S * doc/grep.texi (The Backslash Character and Special Expressions): Document \s and \S escapes. --- doc/grep.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') 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}, -- cgit v1.2.1