I would want to extract the numbers from a complex expression given as a string. Example:
Input: '2+3*i + 1-4*i + -2*i'.
Output: 2 , 3 , 1, -4 , -2.
I tried to parse them using split("-|\\+|\\*") but i lose the sign for the negative numbers, any suggestions ?