Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2005, 09:03 PM
Registered User
 
Join Date: Apr 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regular Expression for password

Hi,

I am looking around for someone who can help me ^^'

I am not sure a single regular expression can do this. I need to validate a password that is:
- 6-32 characters in length, and
- contain at least 2 alphabets, 2 digits and 2 special characters (e.g.!@#$%^&*)

Here's some match cases:
asA@m1s^8
kj@4&7
Mrp002!@#
%M2%d7

Thanks

 
Old April 28th, 2005, 04:06 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

This article would be helpful to you

http://msdn.microsoft.com/library/de...l/regexnet.asp

Regards
Ganesh
 
Old April 28th, 2005, 11:44 PM
Registered User
 
Join Date: Apr 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Regular expression is too difficult for me... I have try a long time but still can't spell a sutiable reg exp. for this case.....

Thanks anyways






Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expression for password? tina123 ASP.NET 1.0 and 1.1 Basics 2 October 3rd, 2008 08:23 PM
Regular Expression Help Please rstelma ASP.NET 1.0 and 1.1 Professional 0 January 2nd, 2008 07:01 PM
Regular Expression for a password? Jeff Mason VB.NET 6 May 18th, 2007 10:59 AM
Password Validation with Regular Expression moghazali ASP.NET 1.0 and 1.1 Basics 0 January 7th, 2007 04:50 AM
Regular Expression for password Baby_programmer ASP.NET 1.0 and 1.1 Basics 1 December 28th, 2004 01:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.