got these questions and i cant seem to get it right, someone please come to my rescue
Consider the language consisting of all strings ending with exactly two a’s, with Σ = {a, b}. Give an RE for this language.
• ab*ab*
• (a + b)*aa(a + b)*
• (a + b)*aa
• a*ba*b
Consider the language consisting of all strings containing exactly two a’s, with Σ = {a, b}. Give an RE for this language.
• b*ab*ab*
• a*ba*b
• ab*ab*
• (a*b*)aa(a*b*)*