The skeleton code for regular expressions added.