On Jan 26, 1:16 am, Summercool <Summercooln... / gmail.com> wrote: > somebody who is a regular expression guru... how do you negate a word > and grep for all words that is > > tire > > but not > > snow tire > > or > > snowtire > > so for example, it will grep for > > winter tire > tire > retire > tired > > but will not grep for > > snow tire > snow tire > some snowtires > > need to do it in one regular expression Try the answer here: http://mail.python.org/pipermail/tutor/2003-August/024902.html