2) a) Retrieve lines that have a three letter string that starts with t and ends with e. /t.e/ b) Retrieve lines with a three letter word that starts with t and ends with e. /\bt\we\b/ c) Retrieve lines that have a word of any length that starts with t and ends with e. /\bt\w*e\b/ Modify this so that the word has at least three characters. /\bt\w+e\b/ d) Retrieve lines that start with a. /^a/ Retrieve lines that start with a and end with n. /^a.*n$/ e) Retrieve blank lines. Think of at least two ways of doing this. /^$/ or !~ /./ f) Retrieve lines that have two consecutive o's. /oo/ g) Retrieve lines that do not contain the blank space character. !~ / / h) Retrieve lines that contain more than one blank space character. / .* / 3)a) an odd digit followed by an even digit (eg. 12 or 74) /[13579][02468]/ b) a letter followed by a non-letter followed by a number /[a-zA-Z][^a-zA-Z][0-9]/ c) a word that starts with an upper case letter /\b[A-Z]/ d) the word "yes" in any combination of upper and lower case letters /\b[Yy][Ee][Ss]\b/ or /\byes\b/i e) one or more times the word "the" /(\bthe\b)+/ f) a date in the form of one or two digits, a dot, one or two digits, a dot, two digits /\d\d?\.\d\d?\.\d\d/ g) a punctuation mark /[\!:;"',\.\?`]/ 4) What is the difference between the following expressions? b) !/yes/ and /[^y][^e][^s]/ !/yes/ matches lines that do not contain the string "yes". /[^y][^e][^s]/ matches lines that contain three characters so that the first one is not "y", the second one is not "e", and the third one is not "s". Eg. "yes" or "yeS" or "yyy" are not matched, but "YES" or "yes!" are matched (because "es!" does not equal "yes").