# You can name your captured matches and ruby will create local variables for you automatically. # The regex is on Rubular at http://rubular.com/r/HJbhamKAib $ irb 1.9.3p0 :001 > s = "Foo Bar Bas " "Foo Bar Bas " 1.9.3p0 :002 > /(?