def extract(pre, path):
	'''This function extracts a subfolder after a given folder in a path name.'''
	r = re.search("/%s/[^/]+" % pre, path).group(0)
	r = re.search("[^/]+$", r).group(0)
	return r



# get project name
# (extracting from ".../environment_ql_OBJ/<project name>/...")
#
dataset/ETHPy150Open qLab/qLib/examples/workflow/environment_ql_OBJ/example_2--multiple_projects/site_env.py/extract/original