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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Twitter Username
Expression
^([a-zA-Z0-9]{1,15})$
Description
Simple validation reg ex that requires 1-15 alphanumeric characters
Matches
kazoosoft | tw33tfan | MediaOwls
Non-Matches
@lpha | bad\username | badname1234567890
Author Rating: The rating for this expression. Joseph Cardoza
Source www.kazoosoft.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: Agree with comment from Nick Quinlan.
Name: Mark Sizer
Date: 11/14/2014 4:32:23 AM
Comment:
Underscores should also be allowed.


Title: Underscores are also characters you can use
Name: Nick Quinlan
Date: 6/30/2011 3:04:44 PM
Comment:
You can use '_' in a username as well. This would be better: ^([a-zA-Z0-9_]{1,15})$ And this maybe better still to account for user input: ^@?([a-zA-Z0-9_]{1,15})$


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