I need to write a regular expression for all words over $\{a,b,c\}$ not containing $aaa$, $bbb$ or $ccc$. Will appreciate any help. Note: this is not homework.
Regular expressions for words avoiding aaa,bbb,ccc
regular expressions