note 10568 rejected and deleted from ereg_replace by ronabop

From: Date: Fri, 12 Jan 2001 06:29:03 +0000
Subject: note 10568 rejected and deleted from ereg_replace by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-9698@lists.php.net to get a copy of this message
hey, I'm using this to search urls to replace them with links. $output = ereg_replace('([^"])(((ftp://)|(http://))(([-A-Za-z0-9_/:.?=&])*))', "\1<a target="_new" href="\2">\2</a>",$output); But I'd like to be able to modify it so if there is [img] before the url it doesnt replace it, could anyone help? Thanks Josh Powell

« previous php.notes (#9698) next »