stupid Ruby 1.8.7 doesn't support named groups