Concatenates regular expressions in ruby.