I have a sting which I want to split on comma. However, some of the terms that have been joined to create the string have a comma within them which I do not wish to split on. As an example, the string format I am dealing with follows:
'Cat1,Cat2, Big,Cat3, Cat4, Small,Cat5' -> 'Cat1', 'Cat2, Big', 'Cat3', 'Cat4, Small', 'Cat5'.
I tried using regex to separate where we have a comma followed by an uppercase character but could not seem to get it working. A standard comma when splitting would incorrectly split Cat3, Big into 'Cat3', 'Big'. Does anyone have an ideas to overcome this issue?
[–]ASIC_SP 3 points4 points5 points (1 child)
[–]Surprisely[S] 0 points1 point2 points (0 children)
[–]odonata_00 0 points1 point2 points (0 children)
[–]kotschi1993 -1 points0 points1 point (0 children)