$pattern = '/http://mysite.com/otherstuff/test.html/';
$replacement = 'http://mysite.com/otherstuff/test2.html';
echo preg_replace($pattern, $replacement, $incData);
That's my code. short and simple. seems to me that preg_replace doesn't like the slashes in my url. i get the following error
Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in ....\Apache Group\Apache\htdocs\ere.php on line 29
How can i get around this please?
thanks