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-z0-9_@\.]|@{2,}|\.{5,}
Description
Used as a username validation script requires: 1. Allows All Alphanumeric characters & underscore 2. Allows One "@" character 3. Allows Five "." periods 4. Rejects spaces
Matches
user name | user#name | .....
Non-Matches
User_Name1 | username@foo.com | user.name@mail.foo.com
Author Rating: Not yet rated. Theo Tillotson
Source theo@psimatrix.com
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: Doesn't work
Name: Mahesh
Date: 8/15/2006 7:34:23 PM
Comment:
Allow any number of @s and .s


Title: error?
Name: AlleyKat
Date: 7/19/2004 11:58:16 PM
Comment:
1) It REJECTS underscore ("_") 2) it ALLOWS spaces (" ") Not quite what it states.


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