As I'm pretty new to Regular Expression, I'm looking for a regular expression which will validate whether entire string is comma separated & whether all the opened brackets/braces are closed.
Valid Cases:
(abc),(cde),(efg),(1234),[456]
(123),(345),(abcde),123,abc
edf,fgh,123,(abc),(123)
Invalid Cases:
(abc,cde,efg,123),345
[12344,adfc,(bcfgh),(123)
abcdef),123,(1234),(abc),(efgh)
abcdefgh;bcfg;123