Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|cite|improve this question
I’m not sure what you mean. $a(a+b)^*b$ is indeed a regular expression describing the set of strings over the alphabet $\{a,b\}$ that begin with $a$ and end with $b$. What is it that you want to write? – Brian M. Scott Nov 25 '13 at 17:13
I want to know how it is written – techno Nov 25 '13 at 17:15
How what is written? The regular expression is written $a(a+b)^*b$. – Brian M. Scott Nov 25 '13 at 17:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.