What is a regular expression or finite automaton that will accept words in the alphabet $\{a,b,c \}$ where each letter appears at least once?
Acceptable words: $ abc, cba, cbcbcba, abbbcaabb$
Unacceptable words: $aab, babababababa, bbbbbaaaaa$
I would be interested in seeing both the regex and the automaton. Then I can place it into regexper.com
In Regular expression to show that all strings contain each symbol atleast once we find the regex
$$ (a+b+c)^*a(a+b+c)^*b(a+b+c)^*c $$
The word $cba$ does not fit, and the answer raises questions about the complexity or size.
For kicks, I draw the automaton [1].
COMMENT It's not clear to me at all this is a duplicate to the linked question. They talk in general about deciding if
$$ \qquad \displaystyle L' := \{w \in L: uv = w \text{ for } u \in \Sigma^* \setminus L \text{ and } v \in \Sigma^+ \} $$
is a regular language. None of the answers address my specific case in question. Looking at notes, my guess the alphabet is $\Sigma = \{ a,b,c\}$ and $\Sigma^\ast$ is the free monoid. It's unclear to me what choice of $L$ returns the $L'$ I am looking for.
Or if anyone can show me how this is an intersection, complement or other regular language operation please let me know.