From: William James Date: 2005-10-26T18:37:03+09:00 Subject: Re: regular expressions galore Dirk Meijer wrote: > it's still not working for me :-( > !~ doesn't work anyway, because it only returns true or false, when i need > $& to be set. > i think this one is proper: /^:?[\w\/'"$@#]+/ > but what would be the opposite of that? %r{ ^ : ? [ / ' " # $ @ ] + }x and %r{ ^ (?! : ) [^ / ' " # $ @ ] + }x