What pattern can I use to split a string like this:
f.id AS id, CONCAT(a1.id, a2.id, a3.id) AS cnp, SUM(A3.nr) AS sum
in such a way that the result is an array of 3 groups like this:
f.id AS id
CONCAT(a1.id, a2.id, a3.id) AS cnp
SUM(A3.nr) AS sum
Can I match a comma that is not enclosed by parentheses?