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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
\w{5,255}
Description
This is User Name & Password validation expression. It does not allow blank spaces as well as special characters like $#%@&*(){}+
Matches
aa123_ter12 | aa4587 | 784566
Non-Matches
123*-/ mksj
Author Rating: The rating for this expression. Chandan Agarwal
Source
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: how can I allow period "." character
Name: Thanh
Date: 5/27/2008 1:07:16 PM
Comment:
say I want my username is something like "thanh.nguyen" thanks


Title: Error in regular expression
Name: Syed Fahad Ausaf
Date: 1/15/2008 12:40:33 AM
Comment:
I have noticed that if we add blank spaces in the start, it will accept the password, however if we enter blank spase in the middle of the password, it will work fine


Title: Definitely allows blank spaces!
Name: Randal L. Schwartz
Date: 3/8/2005 9:53:23 AM
Comment:
It's not anchored. \w{5,255} matches " Randal".


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