[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: document \s and \S
From: |
Paolo Bonzini |
Subject: |
[PATCH] doc: document \s and \S |
Date: |
Fri, 16 Jul 2010 22:42:18 +0200 |
I'm committing this patch to close the recently submitted bug report.
* doc/grep.texi (The Backslash Character and Special Expressions):
Document \s and \S escapes.
---
doc/grep.texi | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/doc/grep.texi b/doc/grep.texi
index 9ee4bc4..890ba1b 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:]]}.
address@hidden @samp{\s}
+Match whitespace, it is a synonym for @samp{[[:space:]]}.
+
address@hidden @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},
--
1.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] doc: document \s and \S,
Paolo Bonzini <=