I have a string and I wanna create an array with even occurrence of "[]"

```
"Match[0][a][5][b][0][d][2]"

```

I want to split them and make an array using this string on the basis of instance of "[]". Each element of the array must have 2 occurrence of "[]" and the next element has two more occurrence of"[]". In another words I wanna create an array with even occurrence of "[]"

I want to make an array from string like:

```
["Match[0]['a']", "Match[0]['a'][5]['b']", "Match[0]['a'][5]['b'][0]['d']"]

```

Using javascript/jQuery

I have tried match but I only got it as far as this.

```
// ['part1.abc', 'part2.abc', 'part3.abc', 'part4']
'part1.abc.part2.abc.part3.abc.part4'.match(/[^.]+(\.[^.]+)?/g);

```