Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Write down the extended regular expression for following questions E.g. Social security number in the format of999-99-9999 Answer: [0-91431-[0-9120-9114) A) Valid date format in
2. Write down the extended regular expression for following questions E.g. Social security number in the format of999-99-9999 Answer: [0-91431-[0-9120-9114) A) Valid date format in the format of M MM-DD YYYY Note: the first character of the month is capitalized (e.g.May-09,2008 Apr-19,2018 Jan-01,2000) B) An account name which is 8 to 15 characters long, begins witha letter or underscore, ends with a digit, and composed by letters, numbers, underscores and hyphens. (e.g. my_Name1, cat 2,One-1) C) A single-line comment starting with a # and continuing until the end of the line. Note: only whitespace is allowed between the start of the line and the comment. (e.g. # This program outputs the string hello world ) D) Integers in the range between 00 and 99. (e.g. 0,00, 01, 15, 55,59,99) E) Phone number in any of the following format: 999-(999)9999, 999999-9999 999-999-9999. (Note: all of these formats should be matched by a single regular expression) d(3)-Id(3)-d4)
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