Introduction to regex (PCRE)

Have a look at http://regular-expressions.info/ which is an excellent introduction to regex (including PCRE regex).