I have this string a,[b,c,d], e(f), g(h + i) = j, a + c = g(e)
How can I write a regex to parse it to array like below?
=> Array
[1] => a
[2] => [b,c,d]
[3] => e(f)
[4] => g(h + i) = j
[5] => a + c = g(e)
Thanks in advance.