[rubis] (change:minor) Use regex in place of sequential string search.