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

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

38 regular expressions found in this category!

Expressions in category: Email

Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20
Title Test Details Pattern Title
Expression
^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$
Description
Email validator that adheres directly to the specification for email address naming. It allows for everything from ipaddress and country-code domains, to very rare characters in the username.
Matches
Non-Matches
joe | @foo.com | a@a
Author Rating: The rating for this expression. Andy Smith
Title Test Details Pattern Title
Expression
^((?:(?:(?:[a-zA-Z0-9][\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$
Description
Captures Submatches, problem:domainname length can be longer than 64 chars, because every [a-zA-Z0-9][\.\-_] is only countet as one char.
Matches
Non-Matches
__@__.__ | [email protected] | a--b@c__d.ef
Author Rating: The rating for this expression. Sebastian Hiller
Title Test Details Pattern Title
Expression
^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$
Description
this will accept multiple email ids separated only by semi-colons (anyway u can change it).
Matches
Non-Matches
Author Rating: The rating for this expression. narendiran dorairaj
Title Test Details Pattern Title
Expression
^.+@[^\.].*\.[a-z]{2,}$
Description
Most email validation regexps are outdated and ignore the fact that domain names can contain any foreign character these days, as well as the fact that anything before @ is acceptable. The only roman alphabet restriction is in the TLD, which for a long time has been more than 2 or 3 chars (.museum, .aero, .info). The only dot restriction is that . cannot be placed directly after @. This pattern captures any valid, reallife email adress.
Matches
Non-Matches
Author Rating: The rating for this expression. Thor Larholm
Title Test Details Email - Overly Simple
Expression
^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$
Description
Simple email expression. Doesn't allow numbers in the domain name and doesn't allow for top level domains that are less than 2 or more than 3 letters (which is fine until they allow more). Doesn't handle multiple "." in the domain ([email protected]).
Matches
Non-Matches
Author Rating: The rating for this expression. Steven Smith
Title Test Details Pattern Title
Expression
^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$
Description
A short and sweet email address validator. Checks that the username starts and ends with an alphanumeric character, allows a few non-repeating 'special characters' (namely -, ., _, +, &) and checks for a sensible domain name (2-6 character TLD required). Some unconventional, yet technically valid, addresses will not be matched, but this is only a simple expression ;-)
Matches
Non-Matches
[email protected] | spammer@[203.12.145.68] | bla@bla
Author Rating: The rating for this expression. Luke Arms
Title Test Details Pattern Title
Expression
(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})
Description
This is my all-time favourite e-mail validator. I've used it for years and it's never failed me :-)
Matches
Non-Matches
Author Rating: The rating for this expression. Darren Neimke
Title Test Details Pattern Title
Expression
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
Description
Easy expression that checks for valid email addresses.
Matches
[email protected] | [email protected] | username-something@some-server.
Non-Matches
Author Rating: The rating for this expression. Zrekam makerZ
Title Test Details Pattern Title
Expression
^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$
Description
does not allow IP for domain name : [email protected] does not allow litteral addresses "hello, how are you?"@world.com allows numeric domain names after the last "." minimum 2 letters
Matches
Non-Matches
hello@worl_d.com | he&[email protected] | .hello@wor#.co.uk
Author Rating: The rating for this expression. bilou mcgyver
Title Test Details 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
Title Test Details 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
Title Test Details Email - Overly Simple
Expression
^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$
Description
Simple email expression. Doesn't allow numbers in the domain name and doesn't allow for top level domains that are less than 2 or more than 3 letters (which is fine until they allow more). Doesn't handle multiple "." in the domain ([email protected]).
Matches
Non-Matches
Author Rating: The rating for this expression. Steven Smith
Title Test Details Pattern Title
Expression
[\w-]+@([\w-]+\.)+[\w-]+
Description
Yet another simple email validator expression.
Matches
Non-Matches
asdf | 1234
Author Rating: The rating for this expression. Steven Smith
Title Test Details Email
Expression
^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$
Description
regex to validate email address noteworthy: (1) It allows usernames with 1 or 2 alphanum characters, or 3+ chars can have -._ in the middle. username may NOT start/end with -._ or any other non alphanumeric character. (2) It allows heirarchical domain names (e.g. [email protected]). Similar -._ placement rules there. (3) It allows 2-9 character alphabetic-only TLDs (that oughta cover museum and adnauseum :>). (4) No IP email addresses though -- I wouldn't Want to accept that kind of address.
Matches
Non-Matches
Author Rating: The rating for this expression. Rob Eberhardt
Title Test Details Pattern Title
Expression
^[\n <"']*([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)
Description
I use this expression to read bounced email addresses returned by the system administrator. The body of the subject should contain the email address somewhere but the location varies. Examples: To: [email protected] || [email protected] || <[email protected]>... Deferred: Connection timed out with mail.blah.org. || [email protected] 0n 25-12-2004 21:09
Matches
Non-Matches
blah@
Author Rating: The rating for this expression. Jorrit Janszen
Title Test Details Pattern Title
Expression
^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$
Description
Matches
Non-Matches
dot_dot@dot_i.com
Author Rating: The rating for this expression. mahesh mandhare
Title Test Details Pattern Title
Expression
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*
Description
Validates 1 or more email addresses. Email addresses can be delimited with either comma or semicolon. White space is allowed after delimiter, but not necessary. I needed this to allow my users to specify multiple email addresses if they choose to do so.
Matches
Non-Matches
lewis@@moten.com
Author Rating: The rating for this expression. Lewis Moten
Title Test Details Pattern Title
Expression
^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$
Description
Much simpler email expression. This one forces a length of 2 or 3, which fits current specs, but you may need to alter the end as this one allows all numerals on the .COM section.
Matches
Non-Matches
word | word@ | @word
Author Rating: The rating for this expression. Gregory Beamer
Title Test Details Pattern Title
Expression
^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$
Description
Email validation based on Rob Eberhardt's (Thanks, Rob!) email expression, but allows single letter subdomains...
Matches
Non-Matches
Author Rating: The rating for this expression. Shaune Stark
Title Test Details Pattern Title
Expression
^\w+[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$
Description
Email validation. With this short expression you can validate for proper email format. It's short and accurate.
Matches
Non-Matches
Author Rating: The rating for this expression. Eric Lebetsamer
Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20

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