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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:21:15+00:00 2026-06-17T04:21:15+00:00

There are a lot of question on stack overflow possibly for regular expression for

  • 0

There are a lot of question on stack overflow possibly for regular expression for email. I assume I will not get taged as duplicate question…:)

Currently I am using regular expression for email address:

\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

This works fine with following:
xyz@gmail.com

What I want to allowed here user can give space at begining or at ending and possibly both for instance: ” nihantanu@gmail.com ” I want to pass it by regular expression Currently it’s giving Invalid I believe it should be.

What I tried ^[ \t]+|[ \t]+$ + \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

But It’s not working I am not more familiar with how to write regular expression. Currently I m trying to learn from Here http://www.regular-expressions.info/examples.html.

  • 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-06-17T04:21:16+00:00Added an answer on June 17, 2026 at 4:21 am

    Try \s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*.

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

Sidebar

Related Questions

There are a lot of questions relating to license keys asked on Stack Overflow.
I may get some heat for this question because there are a lot out
I know there is a lot of discussion on this topic on stack overflow,
I know there's another question like this on stack overflow, but my problem is
There are a lot of questions on Stackoverflow about curl but I could not
I know there are a lot of similar questions to this one around Stack
There are a lot of question discussing the patterned was of implementing and using
There's a lot of questions about bookmarks but none of them answers my question:
Sorry for this question. There is a lot of information but unfortunately I haven't
This is a complex question, because there are a lot of moving parts. My

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.