Link to home
Create AccountLog in
JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

Avatar of Paul Konstanski
Paul Konstanski🇺🇸

Is an apostrophe (') in an email address really valid?
I've had over 150,000 people sign up through my server and only today I've encountered my first email address with an apostrophe.

I always thought that o'connor@example.com was invalid. And many of the filters and tests that you run come back showing that is invalid.

But in doing some research about the "technically" allowed characters all indications show that to be a valid.  (see wikipedia article).

So is this one of those things that is "on the books" that it is technically okay but in reality no one does it. Gmail doesn't allow it, an online test tool like this doesn't allow it (http://verify-email.org/) and most PHP and JavaScript email validators don't allow it although it looks like angular does (http://www.w3schools.com/angular/tryit.asp?filename=try_ng_validate_required)

So my question is, what's the practical reality. Although permissible, does anybody really do it?  I had my first one in over 150,000 entries. Is that how rare it is?

Thanks for any insight you can give.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Dr. KlahnDr. Klahn

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Paul KonstanskiPaul Konstanski🇺🇸

ASKER

Since I have my own server and ability to create email address, I created the above email address on my server. I then created a facebook page with that email address, which they allowed me to do, and the verification code came right through. So the big giant of Facebook does allow it and it works.

But I'm like you in that in my 40 years of working with computers, I've never seen it. That's why it kind of freaked me out today. There are some database queries that I run that I just don't account for there to be an apostrophe in the email address.

Even the PHP filter validation for email doesn't allow it. http://www.w3schools.com/php/showphp.asp?filename=demo_form_validation_special

Thanks for confirmation of my findings.

Avatar of Paul KonstanskiPaul Konstanski🇺🇸

ASKER

Thanks for the confirmation.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.