June 11, 2010

Writing and Regular Expressions

Just write. That’s what the blog post told me to do to get better at writing so that’s what I’m doing. I’m writing whatever comes into my head and I’m giving myself permission to fail. Permission to write junk that won’t be useful for anything but fodder for the delete button. I keep reminding myself [...]

May 16, 2008

PHP: Formatting dates

Formatting dates can be tricky for the beginning PHP programmer, here’s a few simple examples that will get you started. I’ll go over how to convert from database date formats to traditional date formats and back again, as well as how to test a date using regular expression matching…

February 18, 2008

The Power of Regular Expressions

Regular expressions can be somewhat daunting to the beginning programmer. They really do look scary. But just like the back of your math book, it feels pretty good to look back and realize how far you’ve come. I’m going to give you an example of the power of regular expressions, and this really only glosses [...]