I have a string:
Ayy ***lol* m8\nlol"
I would like to not include the empty capture and produce:
["Ayy ", "**", "*", "lol", "*", " m8", "\n", "lol"]
I am splitting the string by this regex:
/(?x)(\*\*|\*|\n|[.])/
This produces:
["Ayy ", "**", "", "*", "lol", "*", " m8", "\n", "lol"]