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 6150975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:42:03+00:00 2026-05-23T19:42:03+00:00

am having a bad luck in validation of multiple emails seprated with comma Or

  • 0

am having a bad luck in validation of multiple emails seprated with comma Or Semi colon.

ValidationExpression="(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([;: ]+)?)+"

This validation works fine when multiple email separated with comma OR colon, but what i need more to bypass ENTER input too. Means if user hits enter after writing each emails.
How can i modify above expression so that it can eat Enter as well as comma and semi colon,

Thanks in advance

Using this in asp.net .

  • 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-23T19:42:04+00:00Added an answer on May 23, 2026 at 7:42 pm

    I don’t really see how that works with commas but this should make it work with multiple lines.

    (\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([;:\s]+)?)+
    

    If you want it to work for commas I would think it would need to be this:

    (\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;:\s]+)?)+
    

    I should point out that I did not do anything to validate whether or not that was actually a good regex for validating email addresses. I just added the requested functionality.

    I highly recommend The Regex Coach to help you build regex.

    I also highly recommend http://www.regular-expressions.info/ as a reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I'm doing this a bad way... but I'm having trouble seeing any
I have the bad luck of having to downport some ActionScript 3 code to
This is a quick but simple question. I am having a bad day and
I'm having some bad luck trying to bind a uniform 4x4 matrix. I'm targeting
this code is part of NBuilder . I'm having a bad day .. and
Maybe I'm having a really bad day, but could someone possibly help me to
Is having tags inside a jstl tag considered bad form? So for example I
Having trouble with proper regex for RewriteCond RewriteCond %{REQUEST_URI} !^/foo/ Works as expected, that
I am having bad times to generate a rdlc report to show report in
A user of my app out in the field seems to having bad crash-at-app-start

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.