Input:"[3, 4]", "[1, 2, 7, 7]"
Input:"[13, 4]", "[1, 2, 3, 6, 14]"
Input: "[5, 5]", "[1, 2, 3]"
\"\s*\[[0-9]\s*\,\s*[0-9]\]\"\s*\,\s*\"\[[0-9]\s*\,
This was what I tried to validate the above inputs. with what I tried I couldn't get the last part of the string validated. the second array of data can be any number of inputs. The above regex applies until the first comma of the second array. couldn't now write a general expression for any number of inputs after that.
the above inputs.... are they literally"[3, 4]", "[1, 2, 7, 7]"... including"and[]- check this