string regexSearch = new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars()); Regex r = new Regex(string.Format("[{0}]", Regex.Escape(regexSearch)));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)