question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Email validation fails for Country Code Top-Level Domains such as .co.uk

See original GitHub issue

Currently, validation is failing for me@example.co.uk but passing for me@example.com.

I tried a test against the current regex and it does not match the format. THe following regex should:

^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

Source: https://regexr.com/2rhq7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mattkingshottcommented, Jul 20, 2022

Okay. I’m looking into this now…

0reactions
mattkingshottcommented, Jul 20, 2022

No worries. Glad you like it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Email verification for gTLD domain names (clientHold) - TransIP
If your country code TLD (such as .CO.UK, .EU and .NL) is unavailable, email verification does not apply. This means the unavailability of...
Read more >
Extracting top-level and second-level domain from a URL ...
Here's my idea,. Match anything that isn't a dot, three times, from the end of the line using the $ anchor. The last...
Read more >
4.1. Validate Email Addresses - Regular Expressions ...
But it is not valid if your definition specifies that a valid email address is one that accepts mail. There is no top-level...
Read more >
email addresses - Regular Expression Library
Email validator that adheres directly to the specification for email address naming. It allows for everything from ipaddress and country-code ...
Read more >
A beginner's guide to domains and how they work - 123 Reg
Here is a walk through the world of domain names where we explain everything you want to know - from how they work...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found