1. Chose match(es) for each given basic/extended regular expression (maybe multi
ID: 3747996 • Letter: 1
Question
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). e.g. 'abea (extended regex) a) ababa b) abaabbd)aabbaa eaa Answer bc: Pattern:The matched string should begin and end with a and b 'occurs at least once between leading and ending a 1) a(ab)a 2) a?bc 3) [nd] 4) Ta-z 10-9] (a)ababa (b) aaba (c) aabab (d) aabbaa (e)aa (a) abc (a) wind (b)window (c) end d) good (e)wil (b) a?lbc (d) a?)abc (b) aa** (6(d) a+6 (e)aa 1 5) a(alb) a (ajababa (b) aaba (c) aabab (d) aabbaa (ejaa (b)xey (d)y (e)xy (b) az (c) azbcbc (d) acc (e)acz (a) x 9 7) 'a (bc)z (ajazbc 8) a. 10-9] (a)al1 (b) a 2 (c) ab2 (d) abc (e)aaa (a)bash! (ava? d) python! (e) 10) .[a-z1-1V17s*[A-ZI. (hint: Vs matches any whitespace characters) (a)o. year(b)xy (c) U.S. (d)Hello!HELLO (ejindex?a 11) (very ls)7(coolls) (goodlbad) weather (b) very cool weather (ajvery weather (c) good weatherExplanation / Answer
* Note: According to Chegg policy, I am allowed to answer a maximum of 5 Questions only
Ans 5. a,b,d,e
The pattern should start with 'a' and may contain have any numbers of 'a' and 'b' and should end with 'a'
Ans6. a,b
The pattern should start with any lowercase letter and should contain only one '+' symbol followed by any lowercase letter or a digit
Ans7. b
The pattern should start with 'a' and followed by any number of 'bc' (not necessarily) and end with 'z'
Ans8. a,b,c
The pattern should start with 'a' and followed by any letter, number or symbol. The pattern should end with a number
Ans9. a
The pattern should start with any letter between 'a' to 't' and string must have only letters between 'a' to 't'. The string should end with any of the three symbols '!', '?', '+'
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.