Is this not valid?
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?
$_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?
