Last updated on:May 27th, 2018,

Regular expression for the language of all consecutive even length a’s

Write the Regular expression for the language of all consecutive even length a’s?

Accepted Strings: 

These all strings are the part of the language so should be accepted by regular expression;

Example strings = {aa, aab, aabaa, aabbaa, aabbbaa,………}and all other strings that contain consecutive even a’s.

Rejected Strings:

These all strings are not part of the language so should be rejected by regular expression;

Example strings = {a, b, ab, ba, aba, bba, abba,……………..} and all other strings that do not contain consecutive even a’s in strings.

R.E =  (aa+b)*

Part 1Part 2
(aa)*b*

 

 

Topic Covered: 

Regular expression for the language of all consecutive even length a’s .
  List of All Regular Expression examples : Click Here 
.

0Shares

Leave a Reply

Your email address will not be published.