add regex type support