cybernation989
asked on
Regular Expressions
This is not an exam or homework
You are using a RegularExpressionValidator to make sure that the user enters a 5 digit US-Zip code, but you are not actually checking if the zip code exists. Which of the following validation expressions achieves this goal?
You are using a RegularExpressionValidator
ASKER
Sorry forgot this
1. "\d{5}"
2. "[0-9]+"
3. "5*(\d)"
4. "\d[5]"
1. "\d{5}"
2. "[0-9]+"
3. "5*(\d)"
4. "\d[5]"
ASKER
After some checking around I found a great tutorial at http://www.w3schools.com/aspnet/control_regularexpvalidator.asp
According to the example \d{5} is the right one
According to the example \d{5} is the right one
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I am sorry, but this looks too much like it, or like exam preparation.