On Jan 25, 5:16 pm, 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 i could think of something like /[^s][^n][^o][^w]\s*tire/i but what if it is not snow but some 20 character-word, then do we need to do it 20 times to negate it? any shorter way?