From: Gaba Luschi Date: 2011-02-14T02:16:46+09:00 Subject: How does this line of code work? (it's simple) x = "This is a test".match(/(\w+) (\w+)/) Why does puts x[0] give you "THis is" and puts x[1] give you "This" etc? Thanks -- Posted via http://www.ruby-forum.com/.