I want to split a string without losing the separators. I have 2 different separators: "<" and ">".
So with a string like "<\abc>d<\e><\f>ghi<\j>"
, the result should be
["<\abc>","d","<\e>","<\f>","ghi","<\j>"]
I want to split a string without losing the separators. I have 2 different separators: "<" and ">".
So with a string like "<\abc>d<\e><\f>ghi<\j>"
, the result should be
["<\abc>","d","<\e>","<\f>","ghi","<\j>"]