Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 What is the difference between the regular expressions abc and abc+? The first can match the empty set, the second cannot The first

image text in transcribed

Question 1 What is the difference between the regular expressions abc and abc+? The first can match the empty set, the second cannot The first can match any order of a's, b's and c's, the second requires that the letters be in order The first does not require any instances of either a, b or c as long as there is at least one letter while the second requires at least one of each The first does not require any c's, the second requires at least one c There are no differences O O O O Question 2 Using :punct, provide a regular expression which will match any string that contains at least one punctuation mark. Question 3 Which of the following best describes the regular expression IA+$(there is a blank space after the second A)? O Any string that contains at least one blank space Any string that starts with at least one blank space Any string that consists solely of blank spaces Any string that contains no blank spaces Any string that contains only A (caret symbols) and blank spaces O O O O Question 4 Using [0-9], provide a regular expression to match a dollar amount that will be of the form $digits.digits where the digits after the decimal point must be exactly two digits

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_2

Step: 3

blur-text-image_step3

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

Students also viewed these Databases questions

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago