From: Joel VanderWerf Date: 2004-04-27T02:01:10+09:00 Subject: slice returning multiple values Fantasy for the day... str = "foo bar" x, y = str[/(foo) (bar)/, 1, 2] x # ==> "foo" y # ==> "bar" Oh, well, there is always this: (x, y), = str.scan(/(foo) (bar)/)