Implemented the head element of the grammar: reg_exp.
Added test cased for the new feature.