How can I do a multiple Split ?
Example
string eq = SIN(X)/3
I can SPLIT this like string equation[] = eq.Split['/'] but if I have +, -, *, / in my equation how can I SPLIT this ?
Example
string eq = SIN(X) + 3 / 3 * 4
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
string.Splitallows to pass in multiple characters:Having said that, it is not a good idea to evaluate such expressions by using string operations. You should use a mathematical parser for this task.