Title |
Test
Find
E-mail validation
|
Expression |
^[a-zA-Z][a-zA-Z0-9_\.\-]+@([a-zA-Z0-9-]{2,}\.)+([a-zA-Z]{2,4}|[a-zA-Z]{2}\.[a-zA-Z]{2})$ |
Description |
This will validate most legal e-mail adresses with the correct syntax. |
Matches |
|
Non-Matches |
|
Author |
Rating:
Not yet rated.
Viktor Nagy
|
Source |
|
Your Rating |
|
Title: Minor problem with addressee length
Name: Larry Schuldt
Date: 12/9/2010 10:25:22 AM
Comment:
This regex will fail with a 1-character addressee length ([email protected]). My proposal is a trival tweak to fix this.
"^[a-zA-Z][a-zA-Z0-9_\.\-]*@([a-zA-Z0-9-]{2,}\.)+([a-zA-Z]{2,4}|[a-zA-Z]{2\.[a-zA-Z]{2})$"
Title: Minor problem with addressee length
Name: Larry Schuldt
Date: 12/9/2010 10:24:12 AM
Comment:
This regex will fail with a 1-character addressee length ([email protected]). My proposal is a trival tweak to fix this.
"^[a-zA-Z][a-zA-Z0-9_\.\-]*@([a-zA-Z0-9-]{2,}\.)+([a-zA-Z]{2,4}|[a-zA-Z]{2\.[a-zA-Z]{2})$"