//js 判断方法。
var path = new RegExp("^[A-z]:\\\\(.+?\\\\)*$");
var isPath = path.test("字符串");
if (isPath){
console.log("正确路径: ",isPath);
}
//java 判断方法。
// ^[A-z]:\\(.+?\\)*$
boolean path = "字符串1".matches("^[A-z]:\\\\(.+?\\\\)*$");
boolean path1 = "字符串2".matches("^[A-z]:\\\\(.+?\\\\)*$");
boolean path2 = "字符串3".matches("^[A-z]:\\\\(.+?\\\\)*$");