Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write down the extended regular expression for following questions Eg. Social security number in the format of 999-99-9999. Answer: [0-93)-[0-9112)-[0-9114) 1) 1) Valid date

image text in transcribed

2. Write down the extended regular expression for following questions Eg. Social security number in the format of 999-99-9999. Answer: [0-93)-[0-9112)-[0-9114) 1) 1) Valid date format in the format of MMM-DD,YYYY. Note: the first character of the month is capitalized (eg. May-09,2008 Apr-19,2018 Jan-01,2000) 2) An account name which is 8 to 15 characters long, begins with a letter or underscore, ends with a digit, and composed by letters, numbers, underscores and hyphens. (e.g. my Name1, cat 2, One-1) 3) 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. (eg #This program outputs the string hello world. ) 4) Integers in the range between 00 and 99. (e.g. 0, 00, 01, 15, 55, 59,99) 5) 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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

3. Influencing people to willingly follow that direction?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago