help with validating password

Posted on 2006-05-02
Last Modified: 2009-12-16
I am creating an account creation page using 2.0/C#.

I need to validate the password field according to the following set of rules.

·        Must have at least six characters.
·        Can be a combination of following characters:
               Lower case chars: {abcdefghijklmnopqrstuvqxyz}
               Upper case chars: {ABCDEFGHIJKLMNOPQRSTUVWXYZ}
               Numbers:  {0123456789}
               Special Characters:  {!@#$%^*()-_=+;:,./?`~} (excluding the curly braces)

Please help me with the regex for RegularExpressionValidator.

Question by:IUAATech
    LVL 7

    Expert Comment

    this requires 6 - 20 characters.  if you want more change the 20 at the end.


    Author Comment


    Author Comment

    I pasted your solution in the 'ValidationExpression' property of the RegularExpressionValidator. It doesn't recognize a valid password. I tried passwd123.
    LVL 7

    Accepted Solution



    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now