Skip to content

Commit

Permalink
docs: Fix a couple of typos in regex docs (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae authored Aug 20, 2022
1 parent 0076355 commit 75ca898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/queries/regular-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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`

0 comments on commit 75ca898

Please sign in to comment.