FANDOM


This function uses a regular expression to validate an email address and ensure it is in the correct format using strict rules to verify the length of the domain suffix, position of the @ symbol and valid characters etc. If the email address is valid it returns true, otherwise it returns false.


function isEmailAddress(s) {
	var objRegExp = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z] {2,4})$/
	return objRegExp.test(s);
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.