From: Sean O'Dell Date: 2002-03-26T07:39:56+09:00 Subject: Re: RegExp Not "Ralph Mason" wrote in message news:026c01c1d447$edd52560$0101a8c0@p3... > Excuse the probably simple question. > > Is there any way to say not using regular expressions? > > Example > > x = some string with punctuation > x.gsub!( /(NOT)[\w \, \]/,''_ > > would remove anything that wasn't a word character a space or a comma. Have you tried: not str =~ /regexp/ Sean