Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website

Posts Tagged ‘preg_replace’

November 29th, 2011

Replace html tags with regexp

No Comments, PHP, by Joakim Ling.

Regular expressions are an easy way to match or replace pieces of your content, but can be tricky if you…

The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics…

March 25th, 2011

Detect the color brightness with PHP

No Comments, PHP, by Joakim Ling.

A while ago I had a lot of background colors stored in a database. Rather then manually pick a text…