Remove use of RegExp match block method that doesn't exist in 1.8.7