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\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$
Description
Expression 1 of 2 used to check email address syntax.
Matches
bob@somewhere.com | bob.jones@[1.1.1.1] | bob@a.b.c.d.info
Non-Matches
bob@com | bob.jones@some.where | bob@1.1.1.123
Author Rating: Not yet rated. David Lott
Title Test Details Pattern Title
Expression
^(([-\w \.]+)|(""[-\w \.]+"") )?<([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))>$
Description
Expression 2 or 2 for matching email address syntax. This one matches the <angle bracket syntax>.
Matches
<ab@cd.ef> | bob A. jones <ab@cd.ef> | bob A. jones <ab@[1.1.1.111]>
Non-Matches
ab@cd.ef | "bob A. jones <ab@cd.ef> | bob A. jones <ab@1.1.1.111>
Author Rating: Not yet rated. David Lott
   Displaying page 1 of 1 pages; Items 1 to 2

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