split a string into an array through comma

string input = @"a\,c,ba";
string[] arr = Regex.Split(input, @"(?<!\\),");

 

posted on 2011-01-25 14:07  shcity  阅读(161)  评论(0编辑  收藏  举报

导航