public EGrepResult(EGrepGrader problem_grader, File file) {
		super(problem_grader, file);
		regex_file = file;
		if (file == null || !file.canRead()) {
			return;
		}
		missing = false;
		BufferedReader br;
		try {
			br = new BufferedReader(new FileReader(regex_file));
			regex = "";
			String line = null;
			if ((line = br.readLine()) != null)
				regex += line;
			br.close();
			int len = regex.length();
			if (len > 0) {
				if (regex.charAt(0) != '^')
					regex = "^" + regex;
				if (regex.charAt(len-1) != '$')
					regex = regex + "$";
			}
		} catch (FileNotFoundException e) {
			missing = true;
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
		if (test(new TestCase<Boolean>("blah", true)) != null)
			testable = true;
		else
			feedback_prelude += "\\n\tproblem running egrep using your regular expression, most likely due to syntax error";
		loadTestCaseResults();
	}