Hi!

I have a string that may contain functions. Example: "3+Sqrt(2x)-1".

First I thought of sth. like

Regex functionHead = new Regex(@"[A-Z][a-z]+\(.*\)"); |

But then I remebered that a function may contain other functions. Example: "3+Sqrt(Wohow(2x))-1". With my first idea

Sqrt(Wohow(2x) would have been a function, which is wrong of course, as only Sqrt(Wohow(2x)) is a function.

I seriously don't know how to solve this problem.

Please save a poor German's life!