import re


def find_mapping(mapping, target):
		"""Retrieves sample type from recipe

		Args:
			mapping (dic): regex-to-value mapping
			target (string): target match for regexes

		Returns:
			value (any): desired mapping of target
		"""
		for key_re, val in mapping.items():
				expr = re.compile(key_re, re.IGNORECASE)
				if(expr.match(target)):
						return val
		return None