I want to know, with regex, if a list is well-written or not. A well-written list start with '[' and ends with ']' and can handle numbers or other lists or be empty.
Example of valid lists:
[1, 2, 3]
[1, [6, 9], 4]
[[1, 5], 2, [2, 7, [[]], 8, 9, [1]], []]
As you can see this is recursive. So, What regular expression should I use in this case?