What would be an appropriate regular expression for this set of strings listed in my title? i have this so far:
(aa,bb,cc) is a subset of all the strings listed (a,b,c) (it corresponds to the strings over the alphabet (a,b,c))
i was wondering could somebody tell me the correct regular expression for this or tell me if i am on the right track.
Thanks
If you want a regular expression for strings that contain ALL of your substrings aa bb and cc in the string then one way is to take all orderings of these three substrings, and for each ordering, say aa,bb,cc then the regular expression would be $(\Sigma^*) (aa) (\Sigma^*) (bb) (\Sigma^*) (cc)( \Sigma^*)$ where $\Sigma$ is your alphabet.