Added some comments describing the regular expressions.