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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Username
Expression
^[a-zA-Z0-9][a-zA-Z0-9_]{2,29}$
Description
A regexp for general username entry. Which doesn't allow special characters other than underscore. Username must be of length ranging(3-30). starting letter should be a number or a character.
Matches
fname_lastname, fname, f_name, 1_fname, 1_f
Non-Matches
_fname, _f, f_ , ff, 11,
Author Rating: The rating for this expression. Adarsh VC
Source Adarsh
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-2025, RegexAdvice.com | ASP.NET Tutorials