Validating an email address

If your customers sign up for your email list or newsletter, send them an email that requests them to validate by responding.

.pass_color_to_child_links a.u-inline.u-margin-left--xs.u-margin-right--sm.u-padding-left--xs.u-padding-right--xs.u-absolute.u-absolute--center.u-width--100.u-flex-align-self--center.u-flex-justify--between.u-serif-font-main--regular.js-wf-loaded .u-serif-font-main--regular.amp-page .u-serif-font-main--regular.u-border-radius--ellipse.u-hover-bg--black-transparent.web_page .u-hover-bg--black-transparent:hover.

For example, an email address will often have noreply somewhere in it.

If you are a developer of "web applications", you probably have written (or copy-pasted) some code which tries to validate an entered e-mail address.

I just thought this might come in handy for some of you.

Validating email address using regular expressions is tricky and is often not recommended. A valid email address as defined by RFC 2822 can be quite complex.

Search for validating an email address:

validating an email address-40validating an email address-89validating an email address-51validating an email address-88

If someone types an @ symbol sometimes that’s good enough. This will match every one of the examples up above and is fast. You could use it but why risk having a valid email address be rejected. Here is some data on what we’ve seen for email address lengths for real people when parsing emails: If you built your email validation rule to validate that an email address is at least 7 characters, that would be a pretty good rule.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “validating an email address”