using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
var old_data = "data_for_section_1,data_for_section_2,IDs|in|section|3,section_4_part_1, section_4_part_2, section_4_part_3,data_for_section_5";
var data = Regex.Split(old_data, @",(?!\s)");
foreach (var d in data) {
Console.WriteLine(d);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJdmFyIG9sZF9kYXRhID0gImRhdGFfZm9yX3NlY3Rpb25fMSxkYXRhX2Zvcl9zZWN0aW9uXzIsSURzfGlufHNlY3Rpb258MyxzZWN0aW9uXzRfcGFydF8xLCBzZWN0aW9uXzRfcGFydF8yLCBzZWN0aW9uXzRfcGFydF8zLGRhdGFfZm9yX3NlY3Rpb25fNSI7CgkJdmFyIGRhdGEgPSBSZWdleC5TcGxpdChvbGRfZGF0YSwgQCIsKD8hXHMpIik7CgkJCgkJZm9yZWFjaCAodmFyIGQgaW4gZGF0YSkgewoJCQlDb25zb2xlLldyaXRlTGluZShkKTsKCQl9Cgl9Cn0=