I am the first to admit that I don’t understand regular expressions. I’ve tried and tried but it just doesn’t click so I could use some help creating one to do something slightly complex (at least for me). I have an Apple Note that has twelve sections or groups with one or more lines after it that are separated by a blank line. So it basically looks like this:
Week 1: School Group 1 — text here
- list item 1
- list item 2
Week 2: School Group 2 — description here
- another list item 1
- another list item 2
- another list item 3
Week 3: Work Group 1 — work text
- work item A
- work item B
etc.
I have a Shortcut that gets the note and searches for the title/header of each section (i.e. Week X: Group Y…) and then passes those to a Choose from List so I can select which group of information I’m going to work with. What I need is another Match Text action with a regular expression that will return everything after my search term until the next blank line.
For example, if I select “Week 1: Group 1 — text here” then it would return:
- list item 1
- list item 2
And if I select “Week 2: Group 2 — description here” then it would return:
- another list item 1
- another list item 2
- another list item 3
Can anyone please help with this? It would be very much appreciated. Thank you in advance.