public static string RemoveSpecialCharacter(string _path) { return Regex.Replace(_path, "[ \\[ \\] \\^ \\-_*×――(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]", "").ToLower(); }
public static string RemoveSpecialCharacter(string _path) { return Regex.Replace(_path, "[ \\[ \\] \\^ \\-_*×――(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]", "").ToLower(); }
转载于:https://www.cnblogs.com/jiangxianshen/p/8204293.html