I am learning regular expressions and having a hard time. Can anyone tell me if I'm on the right path with these two problems?
-List the words in the language specified by the regular expression (a|b)(c|elipson) -- I am thinking the answer is ac, bc, a,b. Am I right?
-Give a regular expression recognizing all words with an odd number of a’s. -- I am thinking (a)(aa)* . If I'm not wrong this should always work with the exception when the word is just 'a'. how can I modify this to make it work when the word is just 'a'?