I have a form with a javascript form validator to check against all fields to make sure they are entered in correctly and to reduce spam. I am using
var allowedChars = /^[a-z\s]+$/i;
to specify that I only want characters and so on. Is there a way to reverse that to say this html input field CAN NOT contain any of the following? I want to check against a comment box to make sure no url address is entered (http:www.) because most spam contains urls in this field. Is there a simple solution?