Given an expression string exp, write a program to examine whether the pairs and the orders of
"{","}","(",")","[","]"are correct in exp.
For example, the program should print true for
exp = "[()]{}{[()()]()}"and false for
exp = "[(])"
Discussion posts and replies are publicly visible
You should be able to do this, I expect, with a fairly complex Regex Match expression (since it can check not only for patterns but repetitions of patterns).