Regular expressions

When searching an on-line text we often need to find sequences matching some pattern rather than a particular fixed word. This can be achieved through the use of regular expressions. An on-line regular expression tutorial is available here.

Here are some exercises that test your ability to use regular expressions.
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Further exercises (not interactive) and answers.
Additional Practice on a text of your own