CS2121 lab exercise 1 - hints

You can use "^" to mean "at the start of the line" e.g.
^9
would match any line starting with a "9", but would not match a "9" anywhere else on the line.

For part a3, you may also need to use "[ - ]", as in part a2 (hint).