In 31—39, write a regular expression to define the given set of strings. Use the shorthand notations given in the section whenever convenient. In most cases, your expression will describe other strings in addition to the given ones, but try to make your answer fit the given strings as closely as possible within reasonable space limitations.
31. All words that are written in lowercase letters and start with the letters pre but do not consist of pre all by itself.
Write a regular expression to define the given set of strings,
All words that are written in lower-case letters and start with the letters but do not consist of all by itself.
represents a non-empty string written in lower case
Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!Get Started