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:
Joseph Cardoza
|
Source |
www.kazoosoft.com |
Your Rating |
|
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})$