<?php $text = "http://www.google.com/\r\nhttp://www.google.com/\r\nhttp://www.google.com/"; echo preg_replace("/(http|ftp)+(s)?:(\/\/)((\w|\.|\-)+)(\/)?(\S)+/","foo",$text); //print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.