Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

4. What decision would you make and why?

Answered: 1 week ago