From: "Jan E." Date: 2012-12-29T11:38:13+09:00 Subject: Re: "unless" with Regex Hi, that "!=" is the wrong method. It's an inequality check (as you problably know). But you want to check if the string does not match a certain pattern, which is done with !~. But why make it so complicated? Just use something like next if %w[. ..].include? name -- Posted via http://www.ruby-forum.com/.