Question: Part Il: 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 Il: 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) 6).11). eg. abta (extended regex Answer: bc ; Pattern : The matched string should begin and end with and b'occurs at least once between leading and ending 1) a(ab)a 2) a?lbc 3) Ind (a)ababa (b) aaba (c) aabab (d) aabbaa (eaa (a) abc (b)abc)bd) a?(e) abcbc (a) wind (b) window (c) end (d) good (e)will (b))6(d) a+6 e-1 5) a(alb)'a (a)ababa (b)aaba (c) aabab (d) aabbaa (eaa (a) x+9 (b)xy (c)1 1(d)y (e)xy 7) 'a (bc)' (b) az(c) azbcbc (d) acc (eaca 8) a [0.9] (a)al1 (b)a*2 ()b (d) abc (eaa (a)bash! (b)c (c) Java? (d) python (e)cs 10) "la-z)+M?!s"[A-Z), (hint: Vs matches any whitespace characters) (a)o. year(b)xy ()S (d)Hello HELLO (e)indexta 11) vey s)?(coolls) (goodlbad) weather (b) very cool weather (a)very weather (c) good weather (d) very cool good weather (e)col bad weather 12) 7(1O-9)101-9110-9)) (b)-123 ()0(d)-22 12 13) 0-9710-9] (b)-123 (c)0(d)-22 e1.2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
