I am working on a mini scientific calculator which works on infix to postfix algorithm. My input is an infix string .. and my infix to postfix conversion logic requires an array of string. So how can i split an infix string like this:
100+(0.03*55)/45-(25+55)
To an array of String in which each operand and operator is an array element. like this
"100" , "+" , "(" , "0.03" , "*" , "55" , ")" , "/" , "45" , "-"
and so on...
Note that there is no space in the string so it can't be split on the basis of regex " ".