I'm trying to create a regex which splits a string by :
but don't split the quoted parts:
'a:b:c'.split(/*RegExNeeded*/) // => ['a','b','c']
'a:"1:2":d'.split(/*RegExNeeded*/) // => ['a','1:2', 'd']
I've tried ''.split(':')
but it is not working, because it'll split the 1:2
as well.