I was wondering if it was possible to split a string on whitespace, and avoid all numbers, whitespace and operators such as + and -
This is what I have, but I believe it is incorrect
String [] temp = expression.split("[ \\+ -][0-9] ");
Suppose I have an expression
x+y+3+5+z
I want to get rid of everything else and only put x, y, and z into the array