Learning regular expressions

Added a bit of code messing around with regular expressions. These will
be useful for parsing.