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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find username regex
Expression
^[^\~\`\!\@\#\$\%\^\&\*\(\)\-\_\=\+\\\|\[\]\{\}\;\:\"\'\,\<\./\>\?\s](([a-zA-Z0-9]*[-_\./]?[a-zA-Z0-9]{1,})*)$
Description
allows a username of any length a-z 0-9 including one of ._- between each letter or number but not at the start or end of the name
Matches
a.b-c_d a1-b2.c3_d4 0a-b_c2.d.3
Non-Matches
-a1b2c3d_ _a1b2c3d- .abcd- -abcd. _abcd. .abcd_
Author Rating: Not yet rated. Adrian Bursill
Source self made and tested
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

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