I'm trying to extract the text between the headings in a markdown file. The markdown file will look something like this:
### Description
This is a description
### Changelog
This is my changelog
### Automated Tests added
- Test 1
- Test 2
### Acceptance Tests performed
### Blurb
Concise summary of what this PR is.
Is there anyway I can return all of the groups so that:
...and so on
You can use ^[^#]+
. That will exclude a line that starts with #
. If you want to have groups, you may use ^([^#]+)
.
Note that the matches include line breaks. If you don't want them, you can exclude them as well with ^([^#\n]+)
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments