View Single Post
  #4 (permalink)  
Old 09-29-08, 07:25 AM
coolsaggu's Avatar
coolsaggu coolsaggu is offline
Newbie Coder
 
Join Date: Jun 2008
Location: New Delhi, INDIA
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Thanx for posting, guys.

While using the method provided by End User of, I devised the following function

PHP Code:

preg_replace('/(http:\/\/)*(www\.)*[a-zA-Z0-9]+\.[a-zA-Z]{3,4}/''<a href="index.php">http://$2$3$4</a>',html_entity_decode($newContent)) 

But the problem still persists, I am not able to catch the string that was replaced. $& doesn't catch either.
__________________
[ DEVELOPER - Dignity, Energy, Vision, Enthusiasm, Loyalty, Open-minded, Punctuality, Ex-telligence (extra intelligence), Respect ]
Reply With Quote