All strings over the alphabet {a, b, c, d} with at least four instances of c and at least two instances of a.
So I know this is a regular language. But what would be the regular expression for this.
What i got was the following:
((a|c)*(b|d)*((c|a)(b|d)*)+(b|d)*((c|a)(b|d)*)+(b|d)*((c|a)(b|d)*)+(b|d)*((c|a)(b|d)*)+(b|d)*((a|c)(b|d)*)+(b|d)*((a|c)(b|d)*)+(b|d)*(c|a)*)
However if I try this with something like this: "ccdddddccdddbddddddddddddcdbdbcdbcdbbcdbbcdbcbd"
It still works. But its not supposed to because there are no a's in it. Can anyone help please.
