note 10568 added to ereg_replace

From: Date: Thu, 11 Jan 2001 04:07:33 +0000
Subject: note 10568 added to ereg_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-9636@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 http://www.php.net/manual/function.ereg-replace.php

« previous php.notes (#9636) next »