I would like to parse with regex files with the following format in order to retrieve content1a, content1b,content2a,content2b, etc ...
===
content1a
===
content1b
===
content2a
===
content2b
Important : the end of file does not contain ===
This regex does almost the job :
/[===[\s\S]*?===[.]*/g
but does not retrieve the last content (content2b)
Thank you for helping
^===\n(.+)regex101.com/r/2CCNGP/1str.match(/^(?!\=).*$/gm)... already should be sufficient enough.