dummy variable

From: Date: Tue, 25 Feb 2003 05:19:22 +0000
Subject: dummy variable
Groups: php.general 
Request: Send a blank email to php-general+get-137037@lists.php.net to get a copy of this message
Greetings. I have some text that outputs to a page without a variable, example: echo "text"; the echo has text that I would like to preg_replace. since there is no variable, is it possible to make a $dummy variable so either way it replaces the text that i would like inside the echo? this is the function that I'd like to use: preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/si", "<a href=\\1 target=_blank>\\2</a>"); How do I do this? warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com

« previous php.general (#137037) next »