473,756 Members | 5,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password Regular Espression

Bob Ross
119 New Member
I am trying to validate a password field with regular expression.
the trouble is none of the ones I find on the net seem to work.
Expand|Select|Wrap|Line Numbers
  1. ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$ 
This won't allow Hello12 which it should

Expand|Select|Wrap|Line Numbers
  1. ^(?=.*\d)(?=.*[a-zA-Z])(?!.*[\W_\x7B-\xFF]).{6,15}$
This won't allow Hello12 either.

Expand|Select|Wrap|Line Numbers
  1. ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$
This won't allow Hello12*

Basically every RegEx I look up won't work as intended. And I have no idea why.
Nothing seems to pass the validation at all.
All I am using is a textbox and regular expression validator.

Can anyone help me?
Aug 31 '07
10 1927
Bob Ross
119 New Member
Go to Regular Expression Library site and enter passwords in the keywords textbox. There is a RegEx there by Michael Ash that should be what you want. If not you can configure it a bit more.

Nathan
Except that it does not work.
Try it on
http://www.quanetic.co m/regex.php
or any other regex tester online.

I think I may use the AJAX password strength control now.
But would rather not.
Also still need reg ex for username.
Sep 4 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2841
by: James | last post by:
We have our own set of users and passwords for our application and we want to implement strong passwords. My question is can you access the windows password policy settings in order to validate a password the user has typed in? Even if you cant use the password history for your own passwords, it would still be useful to use the other settings like minimum length etc... We could store our own format for the password maybe as a regular...
4
4162
by: Alvaro G. Vicario | last post by:
I’m writing a web application that needs to keep passwords in a database. These passwords are for third-party services and are different from the regular login passwords. I don’t like storing this sensitive info as plain text and one-way hashing is not an option because I need the actual passwords. I’ve done some quick research and it seems that symmetric encryption algorithms (blowfish, AES…) provide a reasonable solution—I...
7
2719
by: JJ | last post by:
To validate a password as the user is registering I want to use a regular expressio validator. I got this one from the Microsoft web site for validating a password of at least 7 characters, with at least one number and one non-alphanumeric character: @\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1,}) Yet I can't get it to validate that a password like qwertyui123# fits the
1
1593
by: hurshprasad | last post by:
When using DAO user newpassword function how do you get old password with out prompting the user? Or how can you retreive it without prompting user? user.NewPassword oldPWD, newPWD
0
2025
by: =?Utf-8?B?am1obWFpbmU=?= | last post by:
I'm trying to create a process that allows me to limit the non-alphanumeric characters generated with the PasswordRecovery control. Specially I want to suppress some characters for security reasons. With textboxes I'm doing this with a RegularExpressionValidator control and have the following the following attribute setup: ValidationExpression="^{6,100}" This limits the user input to alphanumeric characters as well of some selected...
4
3267
by: Jon Paal | last post by:
when user loses their password, the membership module emails a new password , the format is very complex. how can I set the format to be simple alphanumeric - say 7 characters long ?
4
4732
by: Chris | last post by:
I want to ensure a password has a least one lower case letter, one upper letter and a number. I'm a bit of a newbie but I understand you can use the pipe system for OR what about AND.I would like something like this. &&
2
1448
by: Pakku | last post by:
Hi, Wondering if someone could point me to a piece of code that checks to see if password being created is at least 8 char long and has a number and a special character... Thanks
3
2995
by: Nathan Sokalski | last post by:
I have an UpdatePanel that needs to maintain the value of several TextBoxes with TextMode=Password. Since the browser clears all password fields client-side, I obviously need to use JavaScript to do this. Can someone help me? Thanks. Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
9454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10028
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9836
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6533
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.