Jump to content

Help with replacement


PHPNewbie55

Recommended Posts

Hello,

I am trying to replace certain portions of an url, but for the life of me I can't get it to work correctly...

Frankly.. I am embarassed to show you what I have TRIED.... because nothing has worked.

 

So here is what I am trying to do...

 

I have some urls in my database that are something like this.

 

http://www.XblahXblah.com/someplace/else/id/551478/track.php?&url=http://www.XanotherXblahXblah.com

 

Now what I can't figure out is the pattern to replace everything before the &url= to just have the regular link...

 

I have tried preg_replace but I can't seem to get the pattern right to replace what I want...

 

Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/98772-help-with-replacement/
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.