I have a form, description, and I like to stop words like "www, http, //, @, .com, co.uk..."
I would like to stop all email and domains in this form but allow all types of characters spaces, comas, and latin characters with punctuation like "ç, ã, á, à..."
I have somethins like this
<code>
$().ready(function() {
// validate the description form when it is submitted
$("#descriptionform").validate();
});
$(document).ready(function(){
$.validator.addMethod("regex", function(value, element) {
return this.optional(element) || /^[a-z0-9 \_,.]+$/i.test(value);
}, "Description field can not include e-mail and/or urls.");
$("#regForm").validate();
});
</code>
Could you help me please? Thank you in advance