def skip_regex(lines_enum, options):<EOL>
skip_regex = options.skip_requirements_regex if options else None<EOL>if skip_regex:<EOL><INDENT>pattern = re.compile(skip_regex)<EOL>lines_enum = filterfalse(lambda e: pattern.search(e[<NUM_LIT:1>]), lines_enum)<EOL><DEDENT>return lines_enum<EOL>
Skip lines that match '--skip-requirements-regex' pattern

Note: the regex pattern is only built once