Link to home
Start Free TrialLog in
Avatar of cybernation989
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?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

>This is not an exam or homework
I am sorry, but this looks too much like it, or like exam preparation.
Avatar of cybernation989
cybernation989

ASKER

Sorry forgot this

1. "\d{5}"
2. "[0-9]+"
3. "5*(\d)"
4. "\d[5]"
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
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial