Subsequent to Why this regex does split second double quote but not first double quote?
I now added :, problem is I don't want to split if it is inside double quotes:
let regex = /(?=\.|[\":])/;
test = "test: \"test.test:\""
test.split(regex)
gives
["test", ": ", ""test", ".test", ":", """]
whereas I would like to have
["test", ": ", ""test", ".test:", """]
is it possible for regex (I'm not good at all at it)?