Lunix questions

Anonymous
timer Asked: Apr 8th, 2017

Question description

QUESTION1

Provide a regular expression that will match sentences that begin with the word "Hello".

Your answer must consist only of the regular expression, do not include any commands on it.

QUESTION 7

Provide a regular expression that will match the following list of words:

snake

shake

stake

QUESTION 8

Provide a regular expression that will match sentences that end with the three letters tion

As an example, your expression should match the sentence "You are under investigation" and it should NOT match "Is this a question?"

QUESTION 9

Provide a regular expression that will match these words

shake

quake

Question 10

How many words that en in "ide" are in blue's word dictionary (located under /usr/share/dict/words)?

QUESTION 11

Provide a regular expression that will match strings that begin with either a lower case vowel or the digits 1-9.

Note: Do not use Character Classes

For example these strings will match:

awesome
either
9addfak
1cent

but these won't:

Awesome
Either
0cent
$sign

QUESTION 12

How many 5 character words that begin with an "a" are in /usr/share/dict/words?

QUESTION 13

Provide a regular expression that will match strings that do not en in alphanumeric (includes both uppercase and lowercase) characters.

Note: Do not use character classes

For example, it will match these sentences:

What date is today?
Today is Thursday.

but it wont match these sentences

Are there any question marks? Yes there is one
I do not like periods at the end of sentences

QUESTION 14

Provide a regular expression that only uses character classes that will match strings that do not en in alphanumeric (includes both uppercase and lowercase) characters.

For example, it will match these sentences:

What date is today?
Today is Thursday.

but it wont match these sentences

Are there any question marks? Yes there is one

I do not like periods at the end of sentences

Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Virginia
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors