Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q9 The regular expression ^d{5}-d{4}|d{5}|[A-Z]d[A-Z] d[A-Z]d$ is designed to validate American ZIP Codes and Canadian Postal Codes but there are two problems with it. What
Q9 The regular expression ^\d{5}-\d{4}|\d{5}|[A-Z]\d[A-Z] \d[A-Z]\d$ is designed to validate American ZIP Codes and Canadian Postal Codes but there are two problems with it. What is one of the flaws? 1) It doesn't allow for leaving the space out after the third character in the Canadian Postal Code. 2) American ZIP codes that start with 0 aren't accepted. 3) It requires that the string contain an American ZIP Code followed by a Canadian Postal Code. 4) It allows for American ZIP codes with 9 digits
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started