Jump to content

Basic preg_replace help


FRSH

Recommended Posts

I'm working with the youtube API and the function

 $relatedVideo->watchURL 

returns a video url

 

However when I use

preg_replace("youtube","test",$relatedVideo->watchURL);

it gives me the following error

preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in <b>C:\wamp\www\site\test.php</b> on line <b>317

 

Help please?

 

Link to comment
https://forums.phpfreaks.com/topic/232019-basic-preg_replace-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.