go to previous page   go to home page   go to next page

Answer:

[a-z]*b


Example 3

Regular Expression
(Delimit with quotes)
String
(Delimit with quotes)

What regular expression specifies the set of all strings at least one character long consisting only of a's and b's:

Accepted:

a, b, aa, bb, ab, ba,
aaa, bbb, abb, bab, bba, aab, aba, baa,
aaaa, bbbb, abbb, babb, bbab, bbba, ...

QUESTION 26:

What is the RE?