I want to convert the string expression into a list without using built-in functions on Python and regex.
This is the example:
"(52^2)+150-(2^2+4+5)"
to:
["(", "52", "^", "2", ")", "+", "150", "-", "(", "2", "^", "2", "+", "4", "+", "5", ")"]
I used .split()
but the number above 9 is separated.