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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*\s+<(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})>$|^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})$
Description
This Works good until we want a multiple email address validator, I am working on it to make it work with the multiple email address, If anyone can work on this part as to validate a multiple email address then that will produce a very good expression, i think the best of this kind. AIM - to Validate Mohit <[email protected]>; Rohit <[email protected]>; .........(any number of times)
Matches
Non-Matches
Author Rating: The rating for this expression. Mohit Yadav
Source Expression Lib and Self improvement
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: Where to Get Protetox ?
Name: Protetox
Date: 8/18/2022 10:14:18 AM
Comment:
Nevertheless, if you plan to give the supplement a try, just keep in mind that the authentic Protetox supplement is exclusively available on the official website. At the same time, it also has gained a higher market demand, which made many duplicates pop up on various other sources like Amazon. So before placing your order, ensure that you are on the official order page to purchase the original supplement to avoid any unnecessary complexities. Protetox https://www.outlookindia.com/outlook-spotlight/protetox-reviews-shocking-exposed-2022-read-side-effects-scam-legit-ingredients--news-213889 https://www.quora.com/profile/Protetox-9


Title: Via Keto Gummies Australia [Latest Gummies 2022 ]: Price & Website?
Name: Why Do You Need Via Keto Gummies Australia?
Date: 7/8/2022 11:41:26 AM
Comment:
statements made regarding these products are not confirmed by the Food and Drug Administration as individual results may vary. The efficiency of such products is evaluated by FDA-approved research. These products are not greatly intended to cure or prevent any illnesses. Such types of products are only valid in the USA The Via Keto's new item or edibles likewise advance your standard digestion, enacting the technique to make heat. It helps with consuming greasy cells and continues to create heat when you rest or rest, diminishing the fat stores and fat cell amount. These through keto chewy candies can likewise limit hunger, encouraging you for a drawn out period, empowering your craving for close to home food utilization and weight reduction.Via Keto Gummies Australia https://www.outlookindia.com/outlook-spotlight/via-keto-gummies-australia-shocking-side-effects-read-ingredients-pros-cons-where-to-buy-via-keto-gummies-canada--news-207717 https://www.facebook.com/ViaKetoGummiesAuAustralia/


Title: [^\w\._]+/
Name: aaa
Date: 7/17/2013 11:07:53 PM
Comment:
a


Title: Does not match single-character domain names
Name: Marty
Date: 8/8/2012 4:11:33 PM
Comment:
there are a few single-character domain names (@q.com, for example) that do not match.


Title: PS.
Name: Mihnea Stanciu
Date: 4/20/2006 12:50:04 PM
Comment:
The comment form did not break the lines, so you might get confused by the matches: [email protected] , [email protected] DO NOT match since the comma needs to be right after the last letter of the first address, no spaces inbetween.


Title: Multiple addresses
Name: Mihnea Stanciu
Date: 4/20/2006 12:48:03 PM
Comment:
I've taken your code and adapted it to validate multiple addresses, separated by commas: ^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,5})?(([a-z0-9A-Z_\-\.]+(([\'\.\- ][a-z0-9A-Z_ ])?[a-z0-9A-Z_]*)*\s*<(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,5})>))?(([,.][\s]*([a-z0-9A-Z_\-\.]+(([\'\.\- ][a-z0-9A-Z_ ])?[a-z0-9A-Z_]*)*\s*<(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,5}))>)*([,.][\s]*(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,5}))*)*$ Matches: John <[email protected]> [email protected] John <[email protected]>, John Doe <[email protected]>, [email protected] [email protected],[email protected], John Doe <[email protected]> Non-matches: <[email protected]> [email protected] [email protected], [email protected], John Doe <[email protected]>, [email protected] , John Doe <[email protected]> Please note: .info addresses are now also valid. You can replace , with ; everywhere in the code at [,.][\s] if you want to separate addresses with semicolons.


Title: Fails to match .info mails
Name: Costinel
Date: 4/21/2005 10:20:40 AM
Comment:
fails to match a valid mail for .info tld.


Title: Fails to match valid email address
Name: The Fred and Barney Comedy Team <fred&[email protected]>Fails to match the valid email address
Date: 1/26/2005 3:14:59 AM
Comment:
Fails to match the valid email address fred&[email protected]


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