From: Aldric Giacomoni Date: 2009-11-27T21:10:46+09:00 Subject: Re: Pattern match to fail if two periods in a row Ralph Shnelvar wrote: > How does one create an expression that fails if there are two or more > periods > (e.g. "..") in a row? As previously mentioned, you can use this: /\.{2,}/ You can also use this: /[..+]/ Though of course, you -want- to get 'nil' instead of a match. On the other hand, if you are looking to validate an email address, there are already rails plugins that do that (and more) - so why reinvent the wheel? :) -- Posted via http://www.ruby-forum.com/.