I am looking for an alternative to the C# Split where I can pass an array of strings.
string[] m_allOps = { "*", "/", "+", "-", "<", ">", "=", "<>", "<=", ">=", "&&", "||" };
string s = "@ans = .707 * sin(@angle)";
string[] tt = s.Split(m_allOps,StringSplitOptions.RemoveEmptyEntries); // obtain sub string for everything in the equation that is not an operator
I'm sure there is a solution using regEx but I can't seem to figure out how to construct the regular expression.