[Bugfix] use re.search rather than re.match in _match_list