Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3802316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:11:23+00:00 2026-05-19T14:11:23+00:00

People have discussed a lot on Regex for email validations. I found many ideal

  • 0

People have discussed a lot on Regex for email validations.
I found many ideal regex for email id but all of them are validating email id having more than 2 dots
i.e.

sangram@ab.cd.ef.gh.ij.kl.mn.op

All regex are validating this email id which is not right.

its a wrong email id according to me, i understand there can be sub -sub -sub domains , but still more than 5 dots should not be allowed.

i want this thing to be controlled and only 1 to 5 dots can be entered after the @ sign.

so how this can be done using regex ?

Thanks in advance.
i hope that stackoverflow will solve this problem for sure.

-Sangram

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:11:24+00:00Added an answer on May 19, 2026 at 2:11 pm

    See if this can help. (Mind you it’s is a reduced down validation)

    \A[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.){1,5}[A-Za-z]{2,4}\Z
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

People have been saying so many good words for HTML5, but one of my
Many people have argued about function size. They say that functions in general should
Some people have mentioned RockScroll and MetaScroll in This Question , but those only
I know that most people have DirectX9-capable cards but is it really necessary to
I know people have asked similar questions, but I believe the causes of their
As a lot of people have been doing so far, I'm implementing the FragmentTabsPager
Other people have asked this question, but mine is a little more specific. I
Other people have asked similar questions but I want to clarify. I want to
People have asked similar questions about the efficiency of various data structures but none
A few people have touched on it, but no-one appears to have outright asked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.