From: Summercool Date: 2008-01-26T11:19:58+09:00 Subject: Re: regular expression negate a word (not character) On Jan 25, 5:16 pm, Summercool 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?