Do gsub with a regexp instead of a string