Regular Expression for all strings that doesn't contain aa, bb or cc

377 Views Asked by At

Σ={a,b,c},
we want to describe a regular expression to contain all strings without double letters (aa, bb, cc).
I really have no idea how should I do this and I will be so glad if anyone could help me.
thanks.