Skip to content

Instantly share code, notes, and snippets.

@cjaoude
Last active April 24, 2025 22:05
Show Gist options
  • Save cjaoude/fd9910626629b53c4d25 to your computer and use it in GitHub Desktop.
Save cjaoude/fd9910626629b53c4d25 to your computer and use it in GitHub Desktop.
Test list of Valid and Invalid Email addresses
Use: for testing against email regex
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
List of Valid Email Addresses
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
email@[123.123.123.123]
"email"@example.com
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
List of Strange Valid Email Addresses
much.”more\ unusual”@example.com
very.unusual.”@”[email protected]
very.”(),:;<>[]”.VERY.”very@\\ "very”[email protected]
List of Invalid Email Addresses
plainaddress
#@%^%#$@#$@#.com
@example.com
Joe Smith <[email protected]>
email.example.com
email@[email protected]
[email protected]
[email protected]
[email protected]
あいうえお@example.com
[email protected] (Joe Smith)
email@example
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
List of Strange Invalid Email Addresses
”(),:;<>[\]@example.com
just”not”[email protected]
this\ is"really"not\[email protected]
@isthisstackoverflow
Copy link

@cizordj And what does IMO stand for

"In My Office"

"Iguanas Making Omelets"

"Invisible Martian Orchestras"

Interpolate my onions.

@jcf-dev
Copy link

jcf-dev commented Nov 7, 2023

ok

I added "IMO" - "In my opinion" - lastly after writing that, because I finished and thought "you know, it wouldn't be that much more work to measure the byte lengths of the strings... and I'd bet you $5 that regex is missing some unicode ranges. I should probably package this up. I'm not gonna do that. You know what? I'll just say it's an opinion because it's good enough and I'm done with it."

ok

@johnd3v
Copy link

johnd3v commented Nov 7, 2023

@cizordj And what does IMO stand for

"In My Office"

"Iguanas Making Omelets"

"Invisible Martian Orchestras"

Interpolate my onions.

Iced Mocha Overload

@jcf-dev
Copy link

jcf-dev commented Nov 7, 2023

@cizordj And what does IMO stand for

Intellectuals Meeting Ogres

@chiperific
Copy link

This answers all the regex questions about email: https://youtu.be/mrGfahzt-4Q?feature=shared&t=992

@KthProg
Copy link

KthProg commented Nov 20, 2023

This answers all the regex questions about email: https://youtu.be/mrGfahzt-4Q?feature=shared&t=992

We don't want answers about email, we want answers about what IMO stands for

@jcf-dev
Copy link

jcf-dev commented Nov 20, 2023

This answers all the regex questions about email: https://youtu.be/mrGfahzt-4Q?feature=shared&t=992

We don't want answers about email, we want answers about what IMO stands for

It's Means Ok

@cizordj
Copy link

cizordj commented Nov 23, 2023

This is why English can be confusing sometimes, specially for foreigners.

@igokom
Copy link

igokom commented Nov 29, 2023

really ok

@brycehazen
Copy link

ok

@pestopasta74
Copy link

ok

@rwzeitgeist
Copy link

I see no tests for email addresses like [email protected], i.e., with a nonalphanumeric character next to the @.

@micahbf
Copy link

micahbf commented May 8, 2024

I see no tests for email addresses like [email protected], i.e., with a nonalphanumeric character next to the @.

ok

@DaliborKovar
Copy link

ok

@zumod
Copy link

zumod commented Jul 22, 2024

ok

@frankvdp
Copy link

ok

@raduiordache
Copy link

ok

@KthProg
Copy link

KthProg commented Aug 16, 2024

ok

@donal56
Copy link

donal56 commented Oct 14, 2024

ok

@jmadelaine
Copy link

ok

@rahmannn99
Copy link

ok

@leoriviera
Copy link

ok

@llama95
Copy link

llama95 commented Mar 6, 2025 via email

@maxchehab
Copy link

ok

@geevb
Copy link

geevb commented Mar 6, 2025

Shut up Leo Sent from my iPhoneOn Mar 6, 2025, at 3:43 AM, Leo. @.> wrote:Re: @. commented on this gist.ok—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

ok

@LukeMadhanga
Copy link

Shut up Leo Sent from my iPhoneOn Mar 6, 2025, at 3:43 AM, Leo. @.> wrote:Re: @. commented on this gist.ok—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

ok

@cjmosure
Copy link

cjmosure commented Mar 6, 2025

Shut up Leo Sent from my iPhoneOn Mar 6, 2025, at 3:43 AM, Leo. @.> wrote:Re: @. commented on this gist.ok—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

ok

@scolton99
Copy link

Shut up Leo Sent from my iPhoneOn Mar 6, 2025, at 3:43 AM, Leo. @.> wrote:Re: @. commented on this gist.ok—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

ok

@skyless
Copy link

skyless commented Mar 14, 2025

Shut up Leo Sent from my iPhoneOn Mar 6, 2025, at 3:43 AM, Leo. @.> wrote:Re: @. commented on this gist.ok—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.

ok

@micahbf
Copy link

micahbf commented Apr 24, 2025

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment