• Trying to get a regex to do a password field following:

    At Least: 1 Cap, 1 lower, 1 Number, and more than 6 characters.

    I can get this to work on a regex tester but not in the form:

    (?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,20})$

    I have tried a few others as well… Any thoughts

    (This is for a simple internal only low security system)

    http://ww.wp.xz.cn/plugins/si-contact-form/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have to enter it with forward slashes before/after
    /^(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,20})$/

    Thread Starter knaackm

    (@knaackm)

    That was it… is that something specific to your form processor? I found multiple examples of the regex and none were formatted that way.

    I do appreciate the help and the contact form plug-in.

    Yes, you have to use slashes before/after

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Regex for a password’ is closed to new replies.