This question has been quite confusing me. $\sum = \{a,b,c\}, L \text{ is a regular language}$ and we have to prove that $L^{'} = \{w \in L : w\text{ containts at least one c} \}$ is regular.
What are the steps of the proof? What methods can we use? I am new to automata and I have suggested the following which I am sure would not work:
$L$ is regular, then it has a regular expression $r \rightarrow L(r) = L $. Now if we write the expression $(r \cdot c \cdot c^* \cdot r^*)$ then it is a regular expression of the language $L^{'}$ where we would have a word of the language $L$ and also the word would contain at least one $c$.
I can deeply sense that there is a big flaw in that, what did I do wrong? and can you please direct me into a good solution?
Thank you!
Consider the regular language $K = \Sigma^*c\Sigma^*$. Then your language $L'$ is equal to $L \cap K$. You should have learnt that regular languages are closed under intersection, so $L'$ regular.