Regular Expression not working for RadInputManger?

2 posts, 0 answers
  1. sam
    sam avatar
    4 posts
    Member since:
    Mar 2008

    Posted 17 Feb 2010 Link to this post

    I probably have the regular expression set up wrong, but I am trying to set up a regular expression that checks if a password typed is between 7 and 16 characters and contains at least 1 numeric and 1 special character and not start with a digit. I tested this in some other regular expression testers and it passes, but I validation is failing when I do it with the RadInputManager.

    I am using a RegExpTextBoxSetting with the following regular expression: /^(?=\D+\d)(?=.*[!@&.$#]).{7,16}$/

    but the above displays a validation error even if I type a  password that is between 7 and 16 characters and contains at least 1 numeric and 1 special character.

    I am new to regular expressions, so please excuse it.

    Thanks,
  2. sam
    sam avatar
    4 posts
    Member since:
    Mar 2008

    Posted 17 Feb 2010 Link to this post

    I got the answer.  I do not need to add the \ at the beginning and end of the expression for the ValidationExpression property.
Back to Top