Making the match method work with Ruby 1.8.