X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=faq.mdwn;h=bb0efaa90c2b458ca5e6ec9ea1486e52d7da072a;hb=dee18e5e8d133b9c28419daa277b5acb09b9c639;hp=c2a878442d2c5a1b425907a0ca26e4829dd520e8;hpb=cc1ab73f3db610334ce8ab8809b6984fc1650efe;p=notmuch-wiki diff --git a/faq.mdwn b/faq.mdwn index c2a8784..bb0efaa 100644 --- a/faq.mdwn +++ b/faq.mdwn @@ -41,3 +41,15 @@ Next, use that to query the messages: $ notmuch search $(notmuch search --output=tags \* | \ sed 's/^/not tag:/;2~1s/^/and /') + +## How do I search for punctuation, specific special characters, or regexp? + +Please see the [[notmuch-search-terms manual +page|manpages/notmuch-search-terms-7]] first. + +The main thing to understand is that Xapian, and therefore Notmuch, searches are +closer to natural language searches than regular expression +searches. Punctuation is mostly ignored. + +The boolean prefix searches (see Boolean and Probabilistic Prefixes in the man +page), such as tag: or path: searches, need an exact match.