Is there any simple way to split sorted string that has only letters(no spaces).
For example if I have this string:
string str ="aaasssdeettyy";
I need to split this string to sub strings:
string res = "aaa";
string res = "sss";
string res = "d";
string res = "ee";
string res = "tt";
string res = "yy";
Is there any way to implement it using split() command and regex expression?