You can enter different types of regex expression the validate if the input is an e-mail. Just be aware not to make it too strict..
But you know that in Umbraco 7 there is a built-in EmailAddress property editor. Just go to developer sections -> datatypes and create a new datatype, where you choose the EmailAddress property editor from the dropdown.
Email validation
how to create email validation for textbox in admin side
Hi Max
You can enter different types of regex expression the validate if the input is an e-mail. Just be aware not to make it too strict..
But you know that in Umbraco 7 there is a built-in EmailAddress property editor. Just go to developer sections -> datatypes and create a new datatype, where you choose the EmailAddress property editor from the dropdown.
/Bjarne
Hi Max,
See the documentation here for more: http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/description,-mandatory-and-validation/documentation
Using regEx
ValidationExpression="[a-z0-9!#$%&'+/=?^_
{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_
{|}~-]+)@(?:a-z0-9?.)+a-z0-9?"Regex.IsMatch("[email protected]", ValidationExpression);
More on....email validation
is working on a reply...