Question: 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)aabbaa 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') 9) '[a-z]+[\-\?!]\s* [A-ZI' (hint: \s matches any whitespace characters) (a)Grade. A (b) book. Z (C) E. G (d) Level. a (e)index?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) ?[0-9]+' (a)3312 (b)-2231 (c) +32 (d) 0.5 (e)2/3 12) -?[0-9]*\.?[0-9]* (a) 3312 (b)-2231 (c) +32 (d) 0.5 (e)2/3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
