const text = `
Orblie Rapitulnik
orbliek.jpg
orbliek.com
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.
Qang Le Toenthal
Qang.jpg
Qangle.io
Contrary to popular belief, Lorem Ipsum is not simply random text.`
Sivan Gomez
sivan-gomez-crop.jpg
sigcolors.com
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
I’m getting the splits at “Qang” and “Sivan” as expected, and multiple blank newlines are counted as one blank newline, as expected, but it’s splitting at the empty lines, which i don’t want.
Yes! That’s what i meant it to be. And i believe that should split my data as desired. But it’s not working.
Thanks for your suggestion, but your solution doesn’t seem to handle arbitrary white space after the newline. My question was meant to show arbitrary white space. I edited it.
The blank lines may be 1 blank, 2 blank, or anything higher.
Late here, so sorry if I have got the wrong end of the stick. Are you saying you don’t want the blank line included in the resulting split array. e.g. just two items not three.
The capture will be captured in the split, which can be useful
@rpg_digital , Your solution works perfectly. Great!
Meaning? The matched text will be included in the output? But here we’re talking about a split. I thought that means everything in the pattern will be treated as a delimiter, which you would expect to be removed in a split. But you mean we have to say so explicitly?
Your regex appears identical to mine, except for the extra ?:
What’s that?
RECORD:
Orblie Rapitulnik
orbliek-crop-2.jpg
orbliek.com
Contrary to popular belief, Lorem Ipsum is not simply random text.
RECORD: Qang Le Schoenthal
Qang.jpg
Qangle.webflow.io
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.
RECORD: Sivan Gomez
sivan-gomez-crop.jpg
sigcolors.com
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.