Jump to content

preg_replace help - everything but web address from a string


DamienRoche

Recommended Posts

Does anyone know how to accomplish this..

 

Let's say I have a string:

 

$string = "dfsaj fljsdka 08 809 sda http://blahblah.com";

 

What I want to do is replace everything BUT the the web address.

 

Can't seem to write the regex for it.

 

Thanks.

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.