posted 05/27/2008 by James
Comments: 0

Regular expressions can also help clean up input text for more aesthetic purposes. Let's assume we want to convert a blog title into URL-friendly characters...

posted 03/7/2008 by Chris
Comments: 0

While regular expressions are often used for input validation, I also find them very useful for cleaning malicious code in user input.  For this I used the function preg_replace.  The idea is that I only allow certain characters through...