• Resolved debinz

    (@debinz)


    Hi, I have a form with a “text” field which is capturing a password. I want the password to have a minimum of eight characters, at least one uppercase letter, one lowercase letter, one number and one special character. I have put in my own regex but when I put it in and save the form it always produces an error. Am I not supposed to be able to put in my own regex?

    I have tried both of these which cause an error when saving the form:
    ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$

    ^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Regex causing error on save’ is closed to new replies.