I am trying to construct a regex that will return true to a set of multiple square brackets, as long as they are opened and closed correctly.
For e.g.
[1][2][3] - true
[1][2][3][4][5] - true
[[1,2],[2]] - true
I got this one but am able to do it for only 3 : "\[([^\]]+)\]\[([^\]]+)\]\[([^\]]+)\]"
Any help appreciated.