whorsfall
asked on
VBScript Regex
Hi,
I am looking to get a regex pattern for VBScript that can validate the following
1. A Minimum string must be at least 1 character
2. Maximum length of 15 characters.
3. Must have at lease one alphabetic character (A-Z)
4. Can also accept any of the following characters (0-9) and a hypen (-).
Thanks,
Ward.
I am looking to get a regex pattern for VBScript that can validate the following
1. A Minimum string must be at least 1 character
2. Maximum length of 15 characters.
3. Must have at lease one alphabetic character (A-Z)
4. Can also accept any of the following characters (0-9) and a hypen (-).
Thanks,
Ward.
i'd assume password validation that requires at least one capital letter
(?=.*[A-Z])[A-Za-z0-9-]{1, 15}
(?=.*[A-Z])[A-Za-z0-9-]{1,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to accept small letters too, use
(?=.*[A-Za-z])[A-Za-z0-9-]
HTH,
Dan