def _compile_multi_match_regex(strings):
 return re.compile('|'.join((re.escape(s) for s in strings)))

def _compile_multi_match_regex ( strings ) : return re . compile ( '|' . join ( ( re . escape ( s ) for s in strings ) ) )
compiles a regex object that matches each of the given strings .