I have a mathematical expression like following format.
var exp = $(x)+$(y)-tan($(z));
using this I get x,y,z in an array
var dArray = Regex.Split(str, @"[^a-z\.]+").Where(c => c != "." && c.Trim() != "").ToList();
But I am trying to remove '$()' from equation first and then want to replace x,y and z variables. For example
first --> x+y-tan(z)
second --> 5+6-tan(7)
Any solution?