public static string[] Split(string input, string splitChar) { if (IsNullOrEmptyByTrim(input)) { return(null); } return(Wf_RegexHelper.Split(input, @"[" + splitChar + "]")); }
/// <summary> /// 将字符串分割,返回string[]数组-分隔符为(,, ;、/\\) /// </summary> /// <param name="input">字符串</param> /// <returns>string[]</returns> public static string[] Split(string input) { if (IsNullOrEmptyByTrim(input)) { return(null); } return(Wf_RegexHelper.Split(input, @"[,, ;、/\\]")); }