RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Validate a 3 field CSV file
Expression
^(([^,\n]+),([^,\n]+),([^@]+)@([^\.]+)\.([^,\n]+)\n)+([^,\n]+),([^,\n]+),([^@]+)@([^\.]+)\.([^,\n]+)\n?$
Description
This pattern validates a 3 field CSV file. I designed it to capture first name, last name and email address in that order.
Matches
Mark,Newman,[email protected]
Non-Matches
Author Rating: Not yet rated. Mark Newman
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 12/30/2006 2:16:03 AM
Comment:
Once again, a regex that DOES NOT MATCH EMAIL ADDRESSES. Please read RFC822. Please read RFC2822. {sigh}


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials