simple parser for degree requirements in extract_degree_requirements