Validating a user defined password with reg exp

A nice little reg exp from the ColdFusion Cookbook when you need to make sure a users new password (which they are setting) contains at least 1 letter and 1 number.

You can also make sure the password length is within a range, the following makes sure the password is between 6 and 15 characters long.

Don’t you just love regular expressions :)

Post a Comment or Leave a Trackback

2 Comments

  1. April 27, 2007 at 10:59 am | Permalink

    how can i find my password of that mail?

  2. April 27, 2007 at 1:07 pm | Permalink

    Sorry Umutoni but I don’t understand your question. Could you please clarify?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*