]> granicus.if.org Git - neomutt/commitdiff
Documentation fix (#271).
authorMichael Elkins <me@sigpipe.org>
Fri, 28 Jun 2002 19:52:31 +0000 (19:52 +0000)
committerMichael Elkins <me@sigpipe.org>
Fri, 28 Jun 2002 19:52:31 +0000 (19:52 +0000)
doc/manual.sgml.head

index 8cd6759c6d6bfd16144bd9b1c479884283511647..69b0f7568a5525065f36f7f70b00b79844bda7d6 100644 (file)
@@ -1781,6 +1781,18 @@ or ``Ed +SomeoneElse'':
  '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
 </verb></tscreen>
 
+Note that if a regular expression contains parenthesis, or a veritical bar
+("|"), you <bf/must/ enclose the expression in double or single quotes since
+those characters are also used to separate different parts of Mutt's
+pattern language.  For example,
+
+<tscreen><verb>
+~f "me@(mutt\.org|cs\.hmc\.edu)"
+</verb></tscreen>
+
+Without the quotes, the parenthesis would truncate the regular expression
+to simply <em/me@/, which is probably not what you want.
+
 <sect2>Searching by Date
 <p>
 Mutt supports two types of dates, <em/absolute/ and <em/relative/.