0

I require to split a string in every operator (+,-,/,*,^), but without actually removing them

expression='x+1*number/n^11'

And what I want is to split it but in operators, but without removing them:


['x', '+', '1', '*', 'number', '/', 'n', '^', '11']


.split("operator") removes them entirely.

0 Answers0