Help using Base SAS procedures

validate email address

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 80
Accepted Solution

validate email address

Hi people,

Is there a best way to validate an email address?

I am using this regular expression  '/^[a-z0-9_\.\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]{2,}(\.[a-z0-9-]+)*\.([a-z]{2,8})/' with prxmatch, anybody knows an easiest way and more efficiently?

Thanks

Augusto Souza


Accepted Solutions
Solution
‎03-20-2012 09:10 AM
PROC Star
Posts: 7,416

validate email address

As shown in this 2010 SAS-L post, you can't really validate unless you actually send emails.  The thread proposes a regular expression that is similar, but not exactly, like the one you are currently using: http://listserv.uga.edu/cgi-bin/wa?A2=ind1005b&L=sas-l&D=0&P=27781

View solution in original post


All Replies
Solution
‎03-20-2012 09:10 AM
PROC Star
Posts: 7,416

validate email address

As shown in this 2010 SAS-L post, you can't really validate unless you actually send emails.  The thread proposes a regular expression that is similar, but not exactly, like the one you are currently using: http://listserv.uga.edu/cgi-bin/wa?A2=ind1005b&L=sas-l&D=0&P=27781

Frequent Contributor
Posts: 80

validate email address

Hello Mister Art,

Thanks one more time.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 2527 views
  • 0 likes
  • 2 in conversation