[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] doc: fix copy-pasted examples of regexp
From: |
Alexandre Jasmin |
Subject: |
[PATCH 1/4] doc: fix copy-pasted examples of regexp |
Date: |
Fri, 3 Feb 2017 19:36:27 -0500 |
The samples commands demonstrating '\B' and '\S' were both using '\w'.
The commands output is correct.
* doc/sed.texi (Regular Expression Extensions): use the proper commands
---
doc/sed.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/sed.texi b/doc/sed.texi
index 52acc66..8afe881 100644
--- a/doc/sed.texi
+++ b/doc/sed.texi
@@ -3008,7 +3008,7 @@ are either both ``word'' characters or both ``non-word''
characters.
@example
-$ echo "abc %-= def." | sed 's/\w/X/g'
+$ echo "abc %-= def." | sed 's/\B/X/g'
aXbXc X%X-X=X dXeXf.X
@end example
@@ -3027,7 +3027,7 @@ abcX%-=Xdef.
Matches non-whitespace characters.
@example
-$ echo "abc %-= def." | sed 's/\w/X/g'
+$ echo "abc %-= def." | sed 's/\S/X/g'
XXX XXX XXXX
@end example
--
2.11.0.258.ge05806da9
- [PATCH 1/4] doc: fix copy-pasted examples of regexp,
Alexandre Jasmin <=