diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-07-04 17:59:10 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-07-04 17:59:10 +0000 |
commit | fbcb386a52283c882c38814d0772c869e241ffb5 (patch) | |
tree | 20c19ddcaa98893d8174b608f04c494217061c51 /doc/manual.sgml.head | |
parent | 368c0e3fc13d42e94d8b595fa7b72013bf00cff0 (diff) |
slight documentation imrpovement from Will Fiveash.
Diffstat (limited to 'doc/manual.sgml.head')
-rw-r--r-- | doc/manual.sgml.head | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/manual.sgml.head b/doc/manual.sgml.head index 1611deee..bca872f8 100644 --- a/doc/manual.sgml.head +++ b/doc/manual.sgml.head @@ -1450,6 +1450,12 @@ A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions. +Note that the regular expression can be enclosed/delimited by either " or +' which is useful if the regular expression includes a white-space +character. See <ref id="sect1" name="Syntax of Initialization Files"> +for more information on " and ' delimiter processing. To match a literal +" or ' you must preface it with \ (backslash). + The fundamental building blocks are the regular expressions that match a single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with @@ -1686,6 +1692,15 @@ field and which are from ``elkins''. !(~t mutt|~c mutt) ~f elkins </verb></tscreen> +Here is an example using white space in the regular expression (note the +' and " delimiters). For this to match, the mail's subject must match +the ``^Junk +From +Me$'' and it must be from either ``Jim +Somebody'' or +``Ed +SomeoneElse'' : + +<tscreen><verb> +'~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")' +</verb></tscreen> + <sect2>Searching by Date <p> Mutt supports two types of dates, <em/absolute/ and <em/relative/. |