Hi all,
I've been struggling with some regex validation. I'm building a survey that has a text entry field, and the entry has to follow the format:
##/#####
That is, it must be 2 numbers followed by a forward slash "/" followed by 5 more numbers. I thought the below regex would work, but unfortunately it isn't.
[0-9]{2} [\\/] [0-9]{5}
Can anyone tell me what the regex expression needs to be?
Help with Regex validation
Best answer by Phillip
I solved my problem and in good forum etiquette I'm posting the solution in case anyone else ever has the same problem.
The solution is:
^[0-9]{2,2}[\\/][0-9]{5,5}$
Just another watch out, I had a setting wrong in my Custom Validation. I previously had it set to "Is Equal to". I think when you click in and out of custom valuation, it automatically resets to "Is Equal to". The setting you need is "Matches Regex".
Image attached.
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
