Question: 9) '[a-t]+[.?!+]' (a)bash! (b) (c) Java? (d) python! (@)c++ 10) [a-z]+[. ?!]s*[A-Z]' (hint: s matches any whitespace characters) (a)o. year (b)x?y (c) U.S. (d) Hello!HELLO
![\?!]\s*[A-Z]' (hint: \s matches any whitespace characters) (a)o. year (b)x?y (c) U.S.](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2eb5e57c7d_99766f2eb5d97e12.jpg)
9) '[a-t]+[\.\?!+]' (a)bash! (b) (c) Java? (d) python! (@)c++ 10) "[a-z]+[\. \?!]\s*[A-Z]' (hint: \s matches any whitespace characters) (a)o. year (b)x?y (c) U.S. (d) Hello!HELLO (e)index?a 11) '(very\s)?(cool\s]+(good bad) weather (a)very weather (b) very cool weather (c) good weather (d) very cool good weather (e)cool bad weather 12) --?([0-9]C[1-9][0-9]))' (a) 123 (b)-123 (C)-O (d) -2.2 (e) 1.2 13) -?[0-9]*\.?[0-9]" (a)123 (b)-123 (c) - (d) -2.2 (e) 1.2 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), 6), 11). e.g. 'ab+a' (extended regex) a) ababa b) aba c )abb, d)aabbaa ejaa Answer: b,c; Pattern : The matched string should begin and end with 'a' and 'b'occurs at least once between leading and ending 'a')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
