From: Aldric Giacomoni Date: 2009-11-27T22:02:53+09:00 Subject: Re: Pattern match to fail if two periods in a row Robert Klemme wrote: >> You can also use this: >> /[..+]/ > > Did you test that? How should this expression match two dots in a > row? You have define a character class with "." and "+" where one dot > is redundant. > > irb(main):001:0> /[..+]/ =~ "+" > => 0 > irb(main):002:0> /[..+]/ =~ "." > => 0 I did test it. Just not well. :( -- Posted via http://www.ruby-forum.com/.