Daniel Klein wrote:

> 2) This can be resolved with
>
> templine = ' ' + line + ' '
> if ' ' + word1 + ' ' in templine and ' ' + word2 + ' ' in templine:

But then you will still have a problem to match the word "foo" in a
string like "bar (foo)".

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to