public boolean accept(File dir, String name) {
			try {
				File f = new File(dir.getPath() + "/" + name);
				
				if(f.isDirectory()) return false;
				
//				System.out.println(name);
				Reader reader = new FileReader(f);
				BufferedReader buffReader = new BufferedReader(reader);
				
				String s ;
				while((s = buffReader.readLine()) != null){
//					System.out.println(s);
					if(pat.matcher(s).matches())return true;
				}
				return false;
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return false;
		}