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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:40:53+00:00 2026-05-20T02:40:53+00:00

Possible Duplicate: Regexp recognition of email address hard? Hi, I would like to implement

  • 0

Possible Duplicate:
Regexp recognition of email address hard?

Hi,

I would like to implement validator for only local part of the email address.

Any suggestions please welcome.

  • 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-20T02:40:54+00:00Added an answer on May 20, 2026 at 2:40 am

    From the Email address article at wikipedia (Syntax section):

    The local-part of the email address may use any of these ASCII characters:

    • Uppercase and lowercase English letters (a–z, A–Z)
    • Digits 0 to 9
    • Characters ! # $ % & ‘ * + – / = ? ^ _ ` { | } ~
    • Character . (dot, period, full stop) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively (e.g. John..Doe@example.com).

    The syntax is formally defined in RFC 5322 section 3.4.1 and RFC 5321. It is defined by a grammar in which the local part starts like this:

    local-part      =   dot-atom / quoted-string / obs-local-part
    atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                       "!" / "#" /        ;  characters not including
                       "$" / "%" /        ;  specials.  Used for atoms.
                       "&" / "'" /
                       "*" / "+" /
                       "-" / "/" /
                       "=" / "?" /
                       "^" / "_" /
                       "`" / "{" /
                       "|" / "}" /
                       "~"
    
    atom            =   [CFWS] 1*atext [CFWS]
    
    dot-atom-text   =   1*atext *("." 1*atext)
    
    dot-atom        =   [CFWS] dot-atom-text [CFWS]
    
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: regexp to partly hide email? I'm currently writing a script that hides
Possible Duplicate: Regexp for extracting a mailto: address I want to fetch the emails
Possible Duplicate: php regexp: remove all attributes from an html tag $input = '<div
Possible Duplicate: Interesting test of Javascript RegExp Regular expression test can't decide between true
Possible Duplicate: Regex for matching javadoc fragments I have files having content like /**
Possible Duplicate: Regex exec only returning first match a1b2c3d.replace(/[0-9]/g,x) returns axbxdxd as expected. /[0-9]/g.exec(a1b2c3d)
Possible Duplicate: Javascript only sets attribute for last item in array I've just dived
Possible Duplicate: Modify regex to validate email? $email = $_POST[email]; if(preg_match([@{1}],$email)) echo There is
Possible Duplicate: Why RegExp with global flag in Javascript give wrong results? var reg1
Possible Duplicate: PHP validation/regex for URL Is there any easy, secure and fast way

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.