public static Matcher matchInFile(File f, Pattern pattern) throws FileNotFoundException {
		Scanner sFile = new Scanner(f);
		
		while (sFile.hasNextLine()) {
			String line = sFile.nextLine();
			Matcher m = pattern.matcher(line);
			Boolean found = m.find();
			if(found) {
				sFile.close();
				return m;
			}
		}
		sFile.close();
		return null;
	}