My Regex Guide as a PDF
Posted on Feb. 3, 2010 by Ben Dickson.
This is an old post from 2010. The content may be outdated or no longer relevant.
This is an old post I wrote, which was originally posted on neverfear.org on Wed, 3rd Feb 2010 8:26:24. Archived here for posterity.
There are 2 comments on this post.
Part two of my regex guide (archive.org link) was released as a shiney PDF. At the time I never created a PDF for part one (archive.org link)) . Sometime between then and now I created an updated PDF version of both, and they have been gathering metaphorical dust.
So, here is a PDF version of part 1, along with an updated version of part 2 (incorporating feedback form the comment section):
Remember: The guide isn't a guide on regex best practises; the examples used are purely to explain the regex syntax. I use examples like escaping MySQL parameters because this is something most programmers are familiar with - you should never use regex for this purpose outside a regex tutorial..