From: Junkone Date: 2008-01-19T02:59:59+09:00 Subject: regex eating my characters Hello I am having trouble with this regex My pattern is group 1= any word Group 2= any word group 3 = any sentence irb(main):001:0> pattern= Regexp.new('(\S+)\s+(\S+)(.+)') => /(\S+)\s+(\S+)(.+)/ irb(main):002:0> pattern.match("list test") => # irb(main):003:0> $2 => "tes" YOu can see that it just ate the last t from $2. dunnno why. Regadrs Seede