Write a regex expression over the alphabet ab that would acc
Write a regex expression over the alphabet {a,b} that would accept any string of even length.
Solution
=>string of even length it means the length will be 2
=> the alphabets are a and b
=>so the string with length two of alphabets a and b is aa,ab,ba,bb
then the regular expression is (aa+ab+ba+bb)*
