I'm working on a problem (from Introduction to Automata Theory, Languages and Computer by Hopcroft, Motwani and Ullman) to write a regular expression that defines a language consisting of all strings of 0
s and 1
s not containing the substring 011
.
Is the answer (0+1)* - 011
correct ? If not what should be the correct answer for this?