Wildcard matching with "todo.sh list" #334
-
|
Wildcard matching of the form |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is because the wildcard matching... is in fact regular expression matching, so Matching is done case-insensitive with Unfortunately, the |
Beta Was this translation helpful? Give feedback.

This is because the wildcard matching... is in fact regular expression matching, so
+1-NW*is (as a basic regexp forgrep) matching the literal+1-Nfollowed by 0 or moreWcharacters (which+1-NRRfulfills).Matching is done case-insensitive with
grep; the only specialty added is that a leading dash inverts the matching (i.e.grep -v); here's the line in the code.Unfortunately, the
todo.sh help listis very vague in that regard; it just speaks of term(s); the only hint that basic regular expressions are used is in the fact that logical or is achieved via\|. I've just submitted #335 to improve that.