Split on comma, but only when not in parenthesis

后端 未结 6 1331
被撕碎了的回忆
被撕碎了的回忆 2021-01-02 23:42

I am trying to do a split on a string with comma delimiter

my $string=\'ab,12,20100401,xyz(A,B)\';
my @array=split(\',\',$string);

If I do

6条回答
提交回复
热议问题