# A regular expression for the language of all those strings end with abb.

## A regular expression for the language of all those strings end with abb.

Regular expression : (a+b)*abb

## DFA for the language of all those strings end with abb

ACCEPTABLE STRINGS(PART OF THIS LANGUAGE)

These strings are not part of the given language and must be rejected by our Regular Expression.

• strings of length 1 = no string exist.
• strings of length 2 = { no string exist }
• strings of length 3 = {abb,no more strings}
• strings of length  4 = { aabb,babb, no more strings}
• strings of  length 5 = {aaabb,bbabb,ababb}
• strings of length  7= {aabbabb, bbbbabb,abababb}
• strings of length  10 ={aabbabbabb,bbbbabbabb,abababbabb}
• strings of length  15 = {aabbabbabbababb,bbbbabbabbaaabb, abababbabbbaabb}
• strings of length 20 = {aabbabbabbababbaaabb, bbbbabbabbaaabbbbabb, abababbabbbaabb}
• string of length 25 ={aabbabbabbababbaaabbaaabb, bbbbabbabbaaabbbabbbbabb, abababbabbbaabbbbabbaaabb}
• and many more similar strings.

Unacceptable strings(not part of this language)

These strings are not part of the given language and must be rejected by our Regular Expression.

• strings of length 1={a,b……}
• strings of length 3 = {aaa,bbb,…….and many more similar strings}
• strings of lenth  5 ={aaaaa,bbbbb,aaaba…….,…….and many more similar strings }
• strings of length 7 ={aaaaaaa,bbbbbbb,aaaaaab,…….and many more similar strings }
• strings og length  15 ={aaaaaaaaaaaaaaa,ababaababababba,bbbbbbbbbbbbbb,babababababaaab,…….and many more similar strings }
• strings  of  length 25={aaaaaaaaaaaaaaaaaaaaaaa,bbbbbbbbbbbbbbbbbbbbb,aaaaaabababababababababab,…….and many more similar strings }
• and many more similar strings.

## Tutorial: Regular Expression

A detailed tutorial of the regular expression is here in the link of regular expression tutorial. This page contains the practice questions of regular expressions with solutions.

Tutorial covering the topics

• Give a regular expression.
• Describe the strings of the regular expression.
• write a regular expression.
• create all strings from regular expression.
• Generate all strings from regular expression.
• Extract all strings from regular expression.
• Find all strings from regular expression.
• Examples of regular expression.