]> granicus.if.org Git - mutt/commitdiff
Document escaping rules for regular expressions (#1351).
authorMichael Elkins <me@sigpipe.org>
Thu, 10 Oct 2002 09:43:29 +0000 (09:43 +0000)
committerMichael Elkins <me@sigpipe.org>
Thu, 10 Oct 2002 09:43:29 +0000 (09:43 +0000)
doc/manual.sgml.head

index 5256083e58d9b8c93c0bcb5a21885e6b1625a8c9..9c5bd19043ff42a6eba9122037e5caa970292dd5 100644 (file)
@@ -1738,7 +1738,12 @@ messages:
 </verb></tscreen>
 
 Where EXPR, USER, ID, and SUBJECT are 
-<ref id="regexp" name="regular expressions">.
+<ref id="regexp" name="regular expressions">.  Special attention has to be
+made when using regular expressions inside of patterns.  Specifically,
+Mutt's parser for these patterns will strip one level of backslash (\),
+which is normally used for quoting.  If it is your intention to use a
+backslash in the regular expression, you will need to use two backslashes
+instead (\\).
 
 *) The forms <tt/&lt;&lsqb;MAX&rsqb;/, <tt/&gt;&lsqb;MIN&rsqb;/,
 <tt/&lsqb;MIN&rsqb;-/ and <tt/-&lsqb;MAX&rsqb;/