In Javascript, I want to split a string into several segments based on the content.
Each segment is a random set of character, and ends with a unicode superscript character.
An example string would be:
this⁵²is¹an³⁶⁻³⁵example²⁴string³¹
And the result would be:
this⁵²
is¹
an³⁶⁻³⁵
example²⁴
string³¹
Each group containing ¹²³⁴⁵⁶⁻ marks the end of each segment.