Home > REGEX
Permalink to Simple Data Sanitization with preg_replace

Simple Data Sanitization with preg_replace

by on 06.28.2010 | 6 comments

Sanitizing data is a very important part of any server side scripting language, and it’s no different for PHP. So here is one simple way of sanitizing data using the dreaded REGEX.

Permalink to Match All Image Tags Using REGEX

Match All Image Tags Using REGEX

by on 10.31.2009 | no comments

While I am busy with the update of The Attached Image (which is taking a while) I thought I’d write a post about something that [...]

Permalink to PHP Tip #6: str_replace Is Faster

PHP Tip #6: str_replace Is Faster

by on 05.26.2009 | 1 comment

This is probably a very well known tip, but for those new to PHP it’s handy. When needing to replace something try & use str_replace [...]