Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Local Name Email Validator (regex)

Posted on 2015-02-02
2
59 Views
Last Modified: 2015-03-23
Hi,

I'm trying to validate the local name portion of an email address.   The domain name gets pre-populate so I don't have to worry about that part.   Is there a regex expression that I can use to do this?   I Thanks!

David
0
Comment
Question by:davidst98
2 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40584186
What have you tried already?
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40584201
You can try the regex epression from here: http://www.regular-expressions.info/email.html
\b[A-Z0-9._%+-]+

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I remove all except the numbers?  PHP  Regex 3 43
parse a file and get data out 11 72
ejb entity bean example 2 7
Programming Codes 2 18
This article will show, step by step, how to integrate R code into a R Sweave document
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question