Hints for exercise 2

General hints about regular expressions:

Specific problems you might encounter: