Solved

Regular Expressions

Posted on 2007-11-28
4
364 Views
Last Modified: 2011-09-20
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?
0
Comment
Question by:cybernation989
  • 2
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20363928
>This is not an exam or homework
I am sorry, but this looks too much like it, or like exam preparation.
0
 

Author Comment

by:cybernation989
ID: 20363938
Sorry forgot this

1. "\d{5}"
2. "[0-9]+"
3. "5*(\d)"
4. "\d[5]"
0
 

Author Comment

by:cybernation989
ID: 20364020
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
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 20364048
yes, that is indeed the correct choice!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Angular JS Route 3 68
IIS Authorization for Web Service 2 44
encoding an href string 2 20
ASP.net File format issue in producing Excel file 3 30
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now