From: Alexander Kellett Date: 2004-01-11T08:23:11+09:00 Subject: Re: regex to NOT match? On Saturday 10 January 2004 23:46, GGarramuno wrote: > What you want is this: > > myString.gsub(/[^at\.]/, '') \ is unneeded in char class afaik > The brackets create a character class, and the ^ is the negative of... > If you wanted to deal with full words, instead of single characters, you > would have to use the (?!word|word) construct. just fyi useful ruby specific docs are found by googling for "ruby quickref" :) Alex -- Every man is as God made him, ay, and often worse. -- Miguel de Cervantes