rails app regex commutators