Jump to content

Help converting ereg_replace?


icexaos

Recommended Posts

How would this translate from:

 

ereg_replace

$search = ereg_replace(' ', '+', $_POST['url']);
$link = ereg_replace('|.*?url=|', '', $link);
$link = ereg_replace('|webcache.googleusercontent.*?:|', '', $link);
$link = ereg_replace('|watch.*?UTF-8|', '', $link);

 

To preg_replace?

Link to comment
https://forums.phpfreaks.com/topic/214772-help-converting-ereg_replace/
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.