I want to extract variables from math expression using c#. I wrote this code and it works right:
List Variables = new List(); str
I like using the Shunting-yard algorithm: http://en.wikipedia.org/wiki/Shunting-yard_algorithm It makes eval easy.