PHP preg_replace URLs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cwin
Forum Newbie
Posts: 2
Joined: Sat Nov 15, 2003 5:08 am

PHP preg_replace URLs

Post by Cwin »

I cant work out how to use preg functions.
Can somebody please help me.

I want the thing in bold to be returned:
http://www.google.com/images/logo.gif
http://forums.devnetwork.net/templates/subSilver/images/logo_phpBB.gif

So basically i want the host returned.

Thanks, cwin
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Post Reply