From: ts Date: 2004-06-30T01:52:47+09:00 Subject: Re: another strange regexp case >>>>> "K" == Kristof Bastiaensen writes: K> irb(main):004:0> /(theone)?/.match(" theone").to_a K> => ["", nil] When the regexp engine try to match `t' it fail, because the first character is ` ' and the regexp succeed because `theone' was optional K> irb(main):003:0> /(theone)?/.match("theone").to_a K> => ["theone", "theone"] it can match `theone' in its first try Guy Decoux