Question: Write regular expressions for the following languages. By word , we mean an alphabetic string separated from other words by whitespace, any relevant punctuation, line
Write regular expressions for the following languages. By word we mean
an alphabetic string separated from other words by whitespace, any relevant
punctuation, line breaks, and so forth.
the set of all strings with two consecutive repeated words egHumbert Humbert and the the but not the bug or the big bug;
all strings that start at the beginning of the line with an integer and that
end at the end of the line with a word;
all strings that have both the word grotto and the word raven in them
but not, eg words like grottos that merely contain the word grotto;
write a pattern that places the first word of an English sentence in a
register. Deal with punctuation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
