Solved

Regular Expressions

Posted on 2007-11-28
4
361 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]
Comment Utility
>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
Comment Utility
Sorry forgot this

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

Author Comment

by:cybernation989
Comment Utility
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
Comment Utility
yes, that is indeed the correct choice!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

11 Experts available now in Live!

Get 1:1 Help Now