Listing tasks in between time windows #1279
-
I would like to list items in a note called to do.md below certain headers like mondayand then split everything found there into dedicated time windows like 07:00-09:00 o'clock I tried a lot of things starting here: description regex matches /[024][0-8]:[0-59]/ Now this particula regex works but not this: description regex matches /[024][9-12]:[0-59]/ At least, the time splitting to some extend works. Callme stupid, but I did not manage to get the header thing working. Can someone please help me with the right way to put this specific thing into action with these specific values? Any help is very warmly appreciated... |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
On Oct 31, 2022 at 9:42:52 AM, feedhopper ***@***.***> wrote:
description regex matches /[024][9-12]:[0-59]/
Message ID: <obsidian-tasks-group/obsidian-tasks/repo-discussions/1279@
github.com>
Not a regex wizard, but I don’t think 9-12 does what you want.
Is this page helpful in explaining that regex does not really do numeric
ranges and potential workarounds?
Dave
|
Beta Was this translation helpful? Give feedback.
-
Hi Dave, thanks for your answer. Which page do you refer to? |
Beta Was this translation helpful? Give feedback.
-
The working regex I have from here: But I am not a programmer. I am not familiar with how regex really works, so I have trouble adjusting this to the 24 hour frame I want to work in |
Beta Was this translation helpful? Give feedback.
-
On Oct 31, 2022 at 9:52:18 AM, feedhopper ***@***.***> wrote:
thanks for your answer. Which page do you refer to?
Oops, so sorry…
https://regextutorial.org/regex-for-numbers-and-ranges.php
Dave
|
Beta Was this translation helpful? Give feedback.
-
Maybe someone can explain to me what the first bracketed 012 expresses? |
Beta Was this translation helpful? Give feedback.
description regex matches /[012][0-9]:[0-5][0-9]/
Maybe someone can explain to me what the first bracketed 012 expresses?