I bought a book a while ago on Regular Expressions and just haven't got
round to sitting down and reading it. I just came across this article
which has a great introduction to pattern matching and also recommends using Expresso
which is a great bit of software to show matches on sample text. Great
for building up patterns without having to recompile code etc.