Regular Expressions
Regular Expressions
If we apply any of the rules several times from 1 to 5, they are Regular
Expressions.
Some RE Examples
Regular
Regular Set
Expressions
Set of strings of a’s and b’s of any length including the null string.
(a+b)*
So L = { ε, a, b, aa , ab , bb , ba, aaa…….}
Set of strings of a’s and b’s ending with the string abb. So L =
(a+b)*abb
{abb, aabb, babb, aaabb, ababb, …………..}