Hey,
I am using a messenging system to do math, and I am in need of help for my string splitting.
What I need it to do, is basically see if there is a '/' '*' '+' or '-' and split it from that charectar, and ALSO split it in front of that charectar.
For example, we have an equation of 5*2.
I need it to see the '*', and split it so 5 is a string, '*' is a string, and 2 is another string using an array.
Right now I have this :
string[] substrings = msg.Split(new Char [] {' ', '/', '*', '+', '-'});
but it does not work. If I inputted 5*2 into that code, it gives me this array : 5 , 2.
Thanks before hand !