Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 3), 4), 5),6), 11) e.g. (ab+a, (extended regex ) a) ababa b) aba c)abba 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') ote: 1) to 5)are basic regexes 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 extended regexes (a) a+b+c(b) +b (d) x+1 (e) x+a (a)azbc (b) az(c) azbcbc (d) acc (e)acz 7) a.[0-9]' (a)azz (b) a0z (c) a01 (d) a0a (e)aza (a)good! (b) Book. (c) hard? (d) cool?hot (e)nothing
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