Exercises
Ok, now it is your turn to give regular expressions a try. Each of the following links leads to an exercise that requires you to construct a regular expression for some regular language. Luckily for you, these are exercises that provide feedback, so you can check the correctness of your answers. Do as many as you need in order to become comfortable with building regular expressions.
And have fun!
- The set of all strings of a's, b's, and c's that contain at least two a's.
- The set of all binary strings that have even parity.
- The set of all strings that stand for valid integer and fixed point decimal numbers.
- The set of all strings that stand for valid floating point decimal numbers.
- The set of valid feet and inches measurements.