I am using a Javascript forms validations within my PHP script, and I have this code:
fn: function(field, value, params) {
return /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(value);
}
that works fine, to make sure a user types in a valid website URL...
I just want to extend that a bit, so that it filters to disallow SUBdomains,
Thanks...