Re: Question about string replace -PHP

From: Date: Mon, 13 May 2002 19:17:21 +0000
Subject: Re: Question about string replace -PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97406@lists.php.net to get a copy of this message
Replacing a constant string by another constant string works easily with str_replace (http://www.php.net/str_replace). More advanced replacements (with dynamic parts for example) can be replace using Regular expressions (look that up in the Manual, it's quite complex). Could give an example of what you want to repalce? Dan McCullough wrote:
I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the script, and I know the domain that I want to point it to. Any help .. ===== dan mccullough -------------------------------------------------------- "Theres no such thing as a problem unless the servers are on fire!" __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
-- Bram v. Leur The Netherlands Proud to PHP!

« previous php.general (#97406) next »