public static bool CheckPath(string path)
{
    string pattern = @"^[a-zA-Z]:(((\\(?! )[^/:*?<>\""|\\]+)+\\?)|(\\)?)\s*$";
    Regex regex = new Regex(pattern);
    return regex.IsMatch(path);
} 

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-12-06
相关资源
相似解决方案