regexp match string with word1 and not word2

Marc 'BlackJack' Rintsch bj_666 at
Mon Apr 30 19:49:43 CEST 2007

In <1177946458.620210.68690 at>, Flyzone wrote:

> for y in range(0, len(skip_lst) ):
>                  if ([y], line)):
>                               skip=1
>                                break

Please try to avoid unnecessary indexes::

    for regexp in skip_list:
        if, line):
            skip = True

And if you don't intent to count the `skip`\s a `True` seems to be more

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list