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.