From: Alan Chen Date: 2002-11-28T16:50:55+09:00 Subject: Re: simple regexp question On Thu, Nov 28, 2002 at 04:09:21PM +0900, Shannon Fang wrote: > However, the following does not work, > > if string!~/pattern/ then... Perhaps your pattern isn't doing what you think it should or the string is different from what you expect. The following works for me on ruby 1.6.7 if( 'one' !~ /two/ ) puts 'it works!' end If you post more information (what is your pattern and some example strings) we might be able to help more. - alan -- Alan Chen Digikata Computing http://digikata.com