✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
As part of securing a web site you are tasked with developing a regular expression that can be used to validate flight ticket numbers as entered by users. The flight ticket numbers have the following format:
AA-NN[N][N]-YYYY-MM-DD-CCCCCC
The different fields are explained below:
All these fields are separated by hyphens.
For the purpose of the exercise, you do not need to consider valid year/month/day combinations and you only need to check each in isolation. For example, 2021-09-31 is valid here. However, your solution must NOT explicitly list all the valid numbers for years, months or days.
You must explain your solution, but no more than one short sentence (or bullet point) for each of the fields.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!