split a string specific character wise for this question.
try following code.
List<string> result = new List<string>();
string str = "*123367676789990098877665655444444343445445555555555555555";
str = str.Substring(str.IndexOf('*') + 1);
string ans = string.Empty;
while (str.Length>0)
{
if (str.Length > 2)
ans = "*" + str.Substring(0, 3);
else
{
ans = "*" + str;
result.Add(ans);
break;
}
result.Add(ans);
str = str.Substring(ans.Length - 1);
}
</string></string>