Uppercase regex is validating as lowercase.

Lindsay Beckworth shared this problem 1 year ago

I am trying to prototype password input validation. The password requirements are:

  • Must contain uppercase letter.
  • Must contain lowercase letter.
  • Must contain special character OR number.

Lowercase and special character are working fine. However, if I type a lowercase letter, the uppercase validation is triggered. My validation is all separated.

Lowercase Regex:

  1. .*[a-z].*

Uppercase Regex:

  1. .*[A-Z].* // Version one
  2. ^.*[^a-z0-9!@#$%]{1}.* // Version two - tried after encountering Regex errors

It validates fine on Regex101.com... so I'm thinking this might be a bug or an error? Some help would greatly be appreciated, or if anyone knows of any workarounds.

Thank you!

Comments (1)


Dear Lindsay,

Do you have an example .vp file of what you're describing so we can take a look? You can attach it in a .rar format, or upload it to a file sharing service such as Dropbox, and attach the link to it here.