Possible Duplicate:
Can regular expressions be used to match nested patterns?
How do I use regular expressions to search for a pair of opening and closing brackets with arbitrary number of nested brackets inside it e.g.
(...(...(...(...) ...) ...) ...)
Each opening bracket must be matched by a closing bracket. And the number of nested opening-closing pair is arbitrary. Other alphanumeric characters may appear inside the brackets.