From: Michael Campbell Date: 2002-05-20T03:04:13+09:00 Subject: Re: Ruby regex question > Well, what would be _cool_ is if the "if" worked like this: > > if matched, x, y = str.match /(.)(.)/ # boobies! sorry, > couldn't resist > puts "we matched." > else > puts "we didn't match." > end > > Of course, matched would be an instance of either TrueClass or > FalseClass ... ;-) That's how my brain wants it, yes. ===== -- Yahoo IM: michael_s_campbell __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com