code: def get_path(query):
  	
  	match = re.search(r'/(.*/)+(\S*(\.[\d\w]{1,4})?)', query)
  	if(os.path.isfile(match.group()) or os.path.isdir(match.group())):
  		return match.group()
  	else:
  		return None
docs: get_path(query) -> pathname -- return the path found in a
  	given, found by matching a regular expression.