Remove named groups from regex so that ruby 1.8.7 is happy