def apply_exclude_tags_regex(self, all_tags):
filtered = []<EOL>for tag in all_tags:<EOL><INDENT>if not re.match(self.options.exclude_tags_regex, tag["<STR_LIT:name>"]):<EOL><INDENT>filtered.append(tag)<EOL><DEDENT><DEDENT>if len(all_tags) == len(filtered):<EOL><INDENT>self.warn_if_nonmatching_regex()<EOL><DEDENT>return filtered<EOL>
Filter tags according exclude_tags_regex option.

:param list(dict) all_tags: Pre-filtered tags.
:rtype: list(dict)
:return: Filtered tags.