Detecting missing closing parenthesis in program code

Q

How to detect missing closing parenthesis in program code using regular expression? For example, I have the following program code: n = - (LN(1-(B/m)*(r/q))/LN(1+(r/q));

✍: Guest

A

Can anyone help?

2013-01-29, 2987👍, 0💬