CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
Valid email matching

 



LevEdge
Deleted

Jun 28, 2000, 11:06 AM

Post #1 of 3 (2763 views)
Valid email matching Can't Post

Hi all -

I'm looking for a robust regexp that will match any valid email address.

Anybody got a nice clean one for me?

TIA!



mckhendry
Deleted

Jun 28, 2000, 11:50 AM

Post #2 of 3 (2763 views)
Re: Valid email matching [In reply to] Can't Post

What are the rules for what you consider a valid email address to be?

The reason I asked is because I faced a similar problem and I couldn't find anywhere what specifications an email address has to meet in order to be valid.

From what I thought a valid email address should be I came up with this:

/(\w|-)+\@(\w|-)+(\.\w+)+/

Still though, I don't know exactly what constitutes a valid email address.


monocle
User

Jun 28, 2000, 12:38 PM

Post #3 of 3 (2763 views)
Re: Valid email matching [In reply to] Can't Post

short but semi-interesting write up about this topic. includes a bit of code.
http://www.perlfaq.com/faqs/id/40


------------------
Monocle
Hear great techno music by Monocle at http://www.mp3.com/monocle. CD now on sale!


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives