Splitting String by Multiple Delimiters
i am trying to create a custom textbox that will calculate number inputs. i am having trouble splitting the text, i hope u can give me an insight to this.
suppose i have the String
now i want to split the string by operand(+,-,/,*).
i have tried with String.split("") but it wont work because it only accepts one character and the user can input values like "123/654" or "321*789-789+963". the pattern of the operands is not constant so i dont think regex pattern would work.
any help would be appreciated.