标签:match val char .net for tin cap cape reg
string regexSearch = new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars());
Regex reg = new Regex(string.Format("[{0}]", Regex.Escape(regexSearch)));
Match m = reg.Match(newname);
标签:match val char .net for tin cap cape reg
原文地址:http://www.cnblogs.com/lover24/p/7306420.html