Write the regular expression for denoting the set containing the string a and all strings consisting of zero or more a’s followed by a b

The regular expression for denoting the set containing the string a and all strings consisting of zero or more a’s followed by a b.
=>    a | a * b

Leave a Reply