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  阅读(164)  评论(0)    收藏  举报

导航