日期:2014-05-17 浏览次数:20663 次
String match = "app/_static/*"; String path0 = "app/_static/"; String path1 = "app/_static/a"; String path2 = "app/_static/b/c/Hello.java"; String path3 = "app/_static/d/Test.java"; ..................... String pathn = "app/_static/[sub directory]"; boolean match0 = path1.matches(path0); //true boolean match1 = path1.matches(path1); //false boolean match2 = path1.matches(path2); //false boolean match3 = path1.matches(path2); //false
String match = "app/_static/*"; //这个match的正则值应该是怎么写呢?谢谢!