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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Pattern Title
Expression
^((?:(?:(?:\w[\.\-\+]?)*)\w)+)\@((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$
Description
Not a 100% email validation. It doesn't work with IP-Adresses, but it's good for most common cases. At least I hope so.
Matches
a-b-c@d-e-f.com | a@b.ce | Me@my.museum
Non-Matches
abc@def.g | a--b@c--d.fe | -abc@-def-.def
Author Rating: Not yet rated. Sebastian Hiller
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
abc@def.gh | a+b_c@d-e_f.gh | abc@def.ghijkl
Non-Matches
__@__.__ | -a-@-b-.cd | a--b@c__d.ef
Author Rating: The rating for this expression. Sebastian Hiller
   Displaying page 1 of 1 pages; Items 1 to 2

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