DamienRoche Posted January 6, 2009 Share Posted January 6, 2009 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. Link to comment https://forums.phpfreaks.com/topic/139717-preg_replace-help-everything-but-web-address-from-a-string/ Share on other sites More sharing options...
flyhoney Posted January 6, 2009 Share Posted January 6, 2009 Ask this question in the regex forum. They are very smart there Link to comment https://forums.phpfreaks.com/topic/139717-preg_replace-help-everything-but-web-address-from-a-string/#findComment-731011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.