From: Robert McCorkle Date: 2007-02-03T07:38:55+09:00 Subject: Re: bug is ruby regexp ------=_Part_52161_32274293.1170455931303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline are there any filterable subscriptions to this board? On 2/2/07, Nick Black wrote: > > Hello, > > I spotted this problem in ruby's regexp today: > > $ irb(main):001:0> num = "10" > => "10" > irb(main):002:0> if num =~ /[9-13]/ > irb(main):003:1> puts "hello" > irb(main):004:1> end > SyntaxError: compile error > (irb):2: invalid regular expression: /[9-13]/ > from (irb):4 > from :0 > irb(main):005:0> > > I have tested it in ruby 1.8 and 0.9. > > Anyone else spotted this? > > > > > > -- > Nick Black > -------------------------------- > http://www.blacksworld.net > > -- Let go, and let GOD! Robert McCorkle www.doodleprints.com (319) 651-3855 ------=_Part_52161_32274293.1170455931303--