I'm trying to split a string without removing the delimiter and having trouble doing so. The string I want to split is:
'+ {- 9 4} {+ 3 2}'
and I want to end up with
['+', '{- 9 4}', '{+ 3 2}']
yet everything I've tried hasn't worked. I was looking through this stackoverflow post for answers as well as google: Python split() without removing the delimiter
Thanks!