I want to find the zero-based index of the first unmatched parenthesis in a string. For example, if I have a string "(1*(2+3))))" it should return 9. How do I do this?
↧