Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

really confused on this and got these wrong. Part II: Regular Expression 1. Chose match(es) for each given basic/extended regular expression (maybe multiple correct matches)

image text in transcribed

image text in transcribed

really confused on this and got these wrong.

Part II: Regular Expression 1. Chose match(es) for each given basic/extended regular expression (maybe multiple correct matches) and describe the pattern of matched string for 1), 2), 7), 8), 10) e.g. 'ab+a' for extended regex engine a) ababa b) aba caba d)aabba e)aa Answer: b,c ; Pattern : The matched string should begin and end with 'a and 'b'occurs at least once between leading and ending 'a') Note: 1) to 4) are processed by basic regex engine 1) 'a[ab]*a' (a)ababa (b) aaba (c) aabab (d) aabbaa (e)aa 2) 'a(bc)?" (a) abc (b) a(bc)? (c) a(bc (d) a (e) abcbc 3) [ind] (a) wind (b) window (c) end(d) good (e)will (a) a+b+c (b) +b (d)x+1(e) x+a ote: 5) to 12) are processed by extended regex engine (a) a+b+c (b) +b (d)x+1(e) x+a (a)azbc (b) az(c) azbcbc (d) acc (e)acz (a)azz (b) a0z(c)a01 (d) a0a (e)aza (a)good! (b) Book. (c) hard? (d) cool?hot (e)nothing 9) [a-z+1?!]s [A-Z]' (hint:Is matches any whitespace characters) (a)Grade. A (b) book. Z (c) E.G (d) Level. a (eindex?a 10) (very)+(cool)?(good bad) weather (a)good weather (b) very good weather (c) cool weather (d) very cool bad weather (e)cool good weather 11) ?10-9+ (a)3312 (b) -2231 (c) +32(d) 0.5 (e)2/3 12) ?[0-9] .10-9]* (a)3312 (b)-2231 (c) +32 (d) 0.5 (e)2/3

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

Students also viewed these Databases questions