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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([a-zA-Z0-9@*#]{8,15})$
Description
Password matching expression. Match all alphanumeric character and predefined wild characters. Password must consists of at least 8 characters and not more than 15 characters.
Matches
@12X*567 | 1#Zv96g@*Yfasd4 | #67jhgt@erd
Non-Matches
$12X*567 | 1#Zv_96 | +678jhgt@erd
Author Rating: The rating for this expression. lawson law
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: Eloloo
Name: Qweeeeeen—e
Date: 12/28/2014 7:54:00 AM
Comment:
Welcom


Title: Eloloo
Name: Qweeeeeen—e
Date: 12/28/2014 7:53:59 AM
Comment:
Welcom


Title: Eloloo
Name: Qweeeeeen—e
Date: 12/28/2014 7:53:28 AM
Comment:
Welcom


Title: Eloloo
Name: Qweeeeeen—e
Date: 12/28/2014 7:53:08 AM
Comment:
Welcom


Title: It's Work!!
Name: Nick NeyKO
Date: 7/22/2013 10:12:45 AM
Comment:
It's Work!! =D Thnks Dude i owe you!!


Title: It's Work!!
Name: Nick NeyKO
Date: 7/22/2013 10:12:17 AM
Comment:
It's Work!! =D Thnks Dude i owe you!!


Title: It's Work!!
Name: Nick NeyKO
Date: 7/22/2013 10:11:18 AM
Comment:
It's Work!! =D Thnks Dude i owe you!!


Title: Far too limiting
Name: Jamie Phelps
Date: 11/19/2008 11:01:35 AM
Comment:
There is no sense in limiting the password to "predefined wild characters." You should be validating at most the presence of 1 or more letters, 1 or more digits, and 1 or more special characters along with a minimum length.


Title: Please, sebastian!
Name: Hank
Date: 2/18/2006 6:14:07 AM
Comment:
Sebastian Nielsen, could you give me the URL of your online bank? I would *LOVE* to log in with just your name!!


Title: how to also not allow 'password'
Name: TedH
Date: 4/19/2005 1:14:47 AM
Comment:
How would I change this if I also wanted to not allow people to use 'password' as their password regardless of case?


Title: why min 8 char?
Name: sebastian nielsen
Date: 7/1/2004 11:47:01 AM
Comment:
Why must use 8 charachters? Im often use 1 charachter or allow blank password when im doing register form. Because by myself i HATE password and trying to crack this type of regexp on other sites in hope to get an blank password so i can login with my name only. But without the too-short lenght check , the regexp is good maximum lenght check was good.


Title: Re: I couldn't get this working
Name: Michael Ash
Date: 2/11/2004 2:14:59 AM
Comment:
Try this one. http://www.regexlib.com/REDetails.aspx?regexp_id=580 It should fit your specs


Title: I couldn't get this working...
Name: Achinda99
Date: 2/6/2004 11:14:12 AM
Comment:
tried this out... couldn't get it to work... what i need is a good regex for a password field... so its should allow all alpha-numerics as well as some special charachters... 8 to 20... and well this don't seem2work when modified for 20 chars... and i'm using vbscript... that make a difference???


Title: First character alpha only
Name: Harvey Dixon
Date: 6/6/2003 3:55:32 PM
Comment:
How would you change the regex to make it where the first character can only be an alpha?


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