leam hall
2013-11-01 15:06:29 UTC
Despite my best efforts to ignore preg_replace, it seems the best answer
for the current problem. That is, if I can get it to work...
Problem code:
$remove = "TAG000000-";
$replaceWith = "";
$newTitle = preg_replace($remove, $replaceWith, $title);
This, as well as using the $remove and $replaceWith as themselves and not
variables, gives:
PHP Warning: preg_replace(): Delimiter must not be alphanumeric or
backslash
Thoughts?
Leam
for the current problem. That is, if I can get it to work...
Problem code:
$remove = "TAG000000-";
$replaceWith = "";
$newTitle = preg_replace($remove, $replaceWith, $title);
This, as well as using the $remove and $replaceWith as themselves and not
variables, gives:
PHP Warning: preg_replace(): Delimiter must not be alphanumeric or
backslash
Thoughts?
Leam
--
Mind on a Mission <http://leamhall.blogspot.com/>
Mind on a Mission <http://leamhall.blogspot.com/>