From: ts Date: 2005-08-25T01:11:29+09:00 Subject: Re: Novice Q: What's the difference between /\s*/ and /(\s)*/? >>>>> "D" == David A Black writes: D> On Thu, 25 Aug 2005, Jeff Wood wrote: >> Remember that if you define a group to be >> inside an optional region of the regular expression, that group will >> return nil. D> I'm not sure what you mean there. moulon% ruby -e '"The gateway is broken ? yes / no ?" =~ /(yes)|(no)/; p $1,$2' "yes" nil moulon% Guy Decoux