def get_path(query):
	"""get_path(query) -> pathname -- return the path found in a
	given, found by matching a regular expression.
	"""
	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