1

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>"]
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Spinelli
  • 23
  • 3

0 Answers0