I have this regex in my model post:
validates_format_of :description, :username, :with => /^(?:[^\W_]|\s)*$/u, :message => "should only contain letters, numbers, or .,-_@"
But this regex does not allow dots "." and commas ",".
I want allow add this characters to this regex.
How can I allow that this regex works fine for fields like username or textareas for validate letters, numbers, commas, dots...etc