From 6ce3c58ea4a83c080f255ce9181c2c1de6c86421 Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Sun, 4 Aug 2024 09:07:02 -0700 Subject: [PATCH] [faq] add Q about searching Related to #1290 --- docs/source/faq.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 013d1c96..dd3ae727 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -83,3 +83,12 @@ Q: Why isn't a file being displayed? :Details: If a file being monitored by lnav does not match a known log file format, it is treated as plaintext and will be displayed in the TEXT view. + +Q: How can I search for an exact word? +-------------------------------------- + +:Solution: Surround the word to search for with :code:`\b`. + +:Details: The :code:`\b` means "word break" and matches a position where a + "word" ends. That is, right before a space character, punctuation, etc, + or at EOL.