So I'm working with a javascript script and I need a quick way to match "JSDocs" using Regex. The pattern I'm trying to match is this.
# this is block1
/// text
/// text
/// text
/// text
# this is block2
/// text
/// text
/// text
/// text
so a block is defined by consecutive lines starting with "///" what I have so far is:
/(/^(\/{3}[\w\W]*)^(?!\/{3})/gm
so I'm starting at a line starting with /// and then matching until a line doesn't start with /// but for this to work I need to have two \n\n at the end of the input block and I don't want that.