I am using PHP to match the following data type :
[["1200","135"],["127","13"]]
I want to extract all the numbers into a seperate array of arrays like this :
array(array(1200,135),array(127,13));
I am using preg_match to capture the elements but so far i am not even able to match them against a rule. I will gladly appreciate if someone can help me correct my rule or even provide a solution as to how to accomplish this.
My regex rule is : / ^[ ([" (\d+) "," (\d+) "])*(,)* ]$ /
I've kept it unescaped to make it more readable on this forum. However it doesn't work. Please help