using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
string str = "*1, **1, **1, ***1, *2, **2, *2, *2, **3, *3";
string result = Regex.Replace(str, @"\s*(\*\*)", "\n$1");
Console.WriteLine(result);
Console.ReadLine();
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CiAKcHVibGljIGNsYXNzIFRlc3QKewpwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCnsKc3RyaW5nIHN0ciA9ICIqMSwgKioxLCAqKjEsICoqKjEsICoyLCAqKjIsICoyLCAqMiwgKiozLCAqMyI7CnN0cmluZyByZXN1bHQgPSBSZWdleC5SZXBsYWNlKHN0ciwgQCJccyooXCpcKikiLCAiXG4kMSIpOwpDb25zb2xlLldyaXRlTGluZShyZXN1bHQpOwpDb25zb2xlLlJlYWRMaW5lKCk7Cn0KfQ==