Is this not valid?
Date: 02/08/06
(PHP Community) Keywords: html
example that isn't valid html img tag:
$_POST['body'] = preg_replace('/asdf/', '<1.gif>', $_POST['body']);
This returns a blank result.
I have other preg_replaces working just fine, so I'm assuming I just don't know what I am doing in regards to regular expressions (and I don't). So is this just not valid, or do I need to try to figure out other causes for this not working?
Source: http://community.livejournal.com/php/409921.html