Make thrust ruby 1.8.7 compatible by removing named regex groups