I have a string which contains several square brackets. I need to get the values as array separated by the square brackets. My example will make you sense:
$inputString = "['A'|'AA']['B'|'BB']['C'|'CC']";
My objective is to get the array like this:
0=>'A'|'AA'
1=>'B'|'BB'
2=>'C'|'CC'
'A'|'AA'?