From 75ca898ab991b288bb7fb9a0a197e4154840797f Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Sat, 20 Aug 2022 11:19:51 +0100 Subject: [PATCH] docs: Fix a couple of typos in regex docs (#1053) --- docs/queries/regular-expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/queries/regular-expressions.md b/docs/queries/regular-expressions.md index 8a8de63d96..99071fdc7a 100644 --- a/docs/queries/regular-expressions.md +++ b/docs/queries/regular-expressions.md @@ -212,7 +212,7 @@ description regex matches /#tag\/subtag[0-9]\/subsubtag[0-9]/i Currently `tag` and `tags` searches do not yet support regular expressions. Therefore, for precise searching of tags, use `description` instead. -Suppose you wanted to search for tasks with a very short tag in: `#t`, and to not match tags line `#task` and `#t/subtag`. +Suppose you wanted to search for tasks with a very short tag in: `#t`, and to not match tags like `#task` and `#t/subtag`. The most general query is: @@ -233,6 +233,6 @@ The Boolean `OR` allows us to search for two different patterns, for a thorough - But it will not match: - `- [ ] Do stuff #t` - `description regex matches /#t$/i` - - Matches `#t` or `#T` at the very end of the task line (after all signifiers and trailing white space has been removed) + - Matches `#t` or `#T` at the very end of the task line (after all signifiers and trailing white space have been removed) - For example, this will match: - `- [ ] Do stuff #t`