I try to search file with a name like: ENV20120517 every thing you what and finish by .DAT
So i set pattern to: "ENV20120517*.*DAT".
public boolean accept(File dir, String name) {
if (pattern != null) {
return name.matches(pattern);
}
return false;
}
Why with the previous pattern, i get true for: name = "ENV20120516053518.DAT" ?