How to write a Regular Expression

60 Views Asked by At

I have seen that the regular expression for the set of strings beginning with $a$ and ending with $b$ is written as $a(a+b)^*b$

Can some one tell me how to write this