grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to manual/html_node/The-Backslash-Character-and-Special-Expressi


From: Karl Berry
Subject: Changes to manual/html_node/The-Backslash-Character-and-Special-Expressions.html
Date: Sun, 24 May 2009 18:43:11 +0000

CVSROOT:        /web/grep
Module name:    grep
Changes by:     Karl Berry <karl>       09/05/24 18:43:01

Index: manual/html_node/The-Backslash-Character-and-Special-Expressions.html
===================================================================
RCS file: manual/html_node/The-Backslash-Character-and-Special-Expressions.html
diff -N manual/html_node/The-Backslash-Character-and-Special-Expressions.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ manual/html_node/The-Backslash-Character-and-Special-Expressions.html       
24 May 2009 18:43:00 -0000      1.1
@@ -0,0 +1,74 @@
+<html lang="en">
+<head>
+<title>The Backslash Character and Special Expressions - GNU Grep 2.5.4</title>
+<meta http-equiv="Content-Type" content="text/html">
+<meta name="description" content="GNU Grep 2.5.4">
+<meta name="generator" content="makeinfo 4.13">
+<link title="Top" rel="start" href="index.html#Top">
+<link rel="up" href="Regular-Expressions.html#Regular-Expressions" 
title="Regular Expressions">
+<link rel="prev" 
href="Character-Classes-and-Bracket-Expressions.html#Character-Classes-and-Bracket-Expressions"
 title="Character Classes and Bracket Expressions">
+<link rel="next" href="Anchoring.html#Anchoring" title="Anchoring">
+<link href="http://www.gnu.org/software/texinfo/"; rel="generator-home" 
title="Texinfo Homepage">
+<!--
+This manual is for `grep', a pattern matching engine.
+
+Copyright (C) 1999, 2000, 2001, 2002, 2005, 2008, 2009 Free
+Software Foundation, Inc.
+
+     Permission is granted to copy, distribute and/or modify this
+     document under the terms of the GNU Free Documentation License,
+     Version 1.3 or any later version published by the Free Software
+     Foundation; with no Invariant Sections, with no Front-Cover Texts,
+     and with no Back-Cover Texts.  A copy of the license is included
+     in the section entitled ``GNU Free Documentation License''.
+   -->
+<meta http-equiv="Content-Style-Type" content="text/css">
+<style type="text/css"><!--
+  pre.display { font-family:inherit }
+  pre.format  { font-family:inherit }
+  pre.smalldisplay { font-family:inherit; font-size:smaller }
+  pre.smallformat  { font-family:inherit; font-size:smaller }
+  pre.smallexample { font-size:smaller }
+  pre.smalllisp    { font-size:smaller }
+  span.sc    { font-variant:small-caps }
+  span.roman { font-family:serif; font-weight:normal; } 
+  span.sansserif { font-family:sans-serif; font-weight:normal; } 
+--></style>
+</head>
+<body>
+<div class="node">
+<a name="The-Backslash-Character-and-Special-Expressions"></a>
+<p>
+Next:&nbsp;<a rel="next" accesskey="n" 
href="Anchoring.html#Anchoring">Anchoring</a>,
+Previous:&nbsp;<a rel="previous" accesskey="p" 
href="Character-Classes-and-Bracket-Expressions.html#Character-Classes-and-Bracket-Expressions">Character
 Classes and Bracket Expressions</a>,
+Up:&nbsp;<a rel="up" accesskey="u" 
href="Regular-Expressions.html#Regular-Expressions">Regular Expressions</a>
+<hr>
+</div>
+
+<h3 class="section">3.3 The Backslash Character and Special Expressions</h3>
+
+<p><a name="index-backslash-235"></a>
+The &lsquo;<samp><span class="samp">\</span></samp>&rsquo; character,
+when followed by certain ordinary characters,
+takes a special meaning:
+
+     <dl>
+<dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\b</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match the empty string at the edge 
of a word.
+
+     <br><dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\B</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match the empty string provided 
it's not at the edge of a word.
+
+     <br><dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\&lt;</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match the empty string at the 
beginning of word.
+
+     <br><dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\&gt;</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match the empty string at the end 
of word.
+
+     <br><dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\w</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match word constituent, it is a 
synonym for &lsquo;<samp><span class="samp">[[:alnum:]]</span></samp>&rsquo;.
+
+     <br><dt>&lsquo;<samp><span class="samp">&lsquo;</span><samp><span 
class="samp">\W</span></samp><span 
class="samp">&rsquo;</span></samp>&rsquo;<dd>Match non-word constituent, it is 
a synonym for &lsquo;<samp><span class="samp">[^[:alnum:]]</span></samp>&rsquo;.
+
+   </dl>
+
+   <p>For example, &lsquo;<samp><span 
class="samp">\brat\b</span></samp>&rsquo; matches the separate word 
&lsquo;<samp><span class="samp">rat</span></samp>&rsquo;,
+&lsquo;<samp><span class="samp">\Brat\B</span></samp>&rsquo; matches 
&lsquo;<samp><span class="samp">crate</span></samp>&rsquo; but not 
&lsquo;<samp><span class="samp">furry rat</span></samp>&rsquo;.
+
+   </body></html>
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]