[A complimentary Cc of this posting was sent to
Summercool 
<[EMAIL PROTECTED]>], who wrote in article <[EMAIL PROTECTED]>:
> so for example, it will grep for
> 
>   winter tire
>   tire
>   retire
>   tired
> 
> but will not grep for
> 
>   snow tire
>   snow   tire
>   some snowtires

This does not describe the problem completely.  What about

  thisnow tire
  snow; tire

etc?  Anyway, one of the obvious modifications of

   (^ | \b(?!snow) \w+ ) \W* tire

should work.

Hope this helps,
Ilya

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

Reply via email to