I am using split to separate array elements. The data looks like this:
1, 2, 3,"a,b,c","d", 4, ect...
I need it to be separated like this:
1
2
3
a,b,c
d
4
I've tried split /,\s+|,"/ but the results are inconsistent. I need use commas as the delimiter except when they are surrounds by quotes. Any ideas?In reply to Incosistent delimeter by spacegeologist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |