Solved

Regular Expressions

Posted on 2007-11-28
4
365 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 143

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 143

Accepted Solution

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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp day pilot 3 23
No Data for DropDown List 2 28
How can I run RAW complex query's with Entity Framework Core 1 37
ASP.NET Content Page 3 29
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

837 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