This is my first post here. We are currently studying regular expressions, and I have been tasked to write a regular expression for the language of all words which do not contain the substring $aba$, for the alphabet $\Sigma=\{a,b\}$.
We were firstly tasked to write a regular expression for all words which do contain the substring $aba$, and I came up with:
$$(a+b)^*aba(a+b)^*$$
However, I don't know how to write the second one because I can't think of a way to formalize something which cannot be included in the regex.