From: Christian Neukirchen Date: 2006-03-29T05:30:22+09:00 Subject: Re: Regexp to match strings that _don't_ being with a string Wes Gamble writes: > Andrew, > > That works fine. > > In actuality, I do need the ability to pass one regex to do the job into > another utility that will use it to operate on an array of strings. > > So although !~ is cool, I really didn't want to have to iterate through > the strings myself. > > Thanks, > Wes I always wanted to propose a ~ operator for Regexps. ;-) The current behavior is next to useless. It wouldn't be difficult to add... also, see lib/eregex.rb. -- Christian Neukirchen http://chneukirchen.org