日期:2014-05-18 浏览次数:20854 次
  string temp = "ContractName='aaaaa',contractRole='Web master',CtUpdate='02/02/2012',update=now(),ssss='sdsass'";
                string[] result = Regex.Matches(temp,@"(?<=='?)[^',\s]+(?='|,|\s)").Cast<Match>().Select(a=>a.Value).ToArray();
                /*
                         [0]    "aaaaa"    string
                        [1]    "Web"    string
                        [2]    "02/02/2012"    string
                        [3]    "now()"    string
                        [4]    "sdsass"    string
                 */