Regular expressions are an easy way to match or replace pieces of your content, but can be tricky if you are new to it. Here are a few examples to replace html tags.
November 29th, 20111 Comment, PHP, by Joakim Ling.
A while ago I had a lot of background colors stored in a database. Rather then manually pick a text color that will be visible on the background I created a PHP function that will do the trick for me.