Re: preg_replace and e option (bug or feature?)

From: Date: Fri, 05 May 2000 14:41:54 +0000
Subject: Re: preg_replace and e option (bug or feature?)
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.dev 
Request: Send a blank email to php-dev+get-18459@lists.php.net to get a copy of this message
Hiya Let me explain... i want to replace everting in a text BETWEEN #! and !# with the equalvalent of addslahes to store it in a database so far i can get it with a regual (even not with the preg_replace e option) the problem is that the text outside teh #! and the !# may not be altered I thought that asking for that feature to catch machted paterns into a var would solve my problem and maybe someone else to, can't imagine that i'm the first who is bitten by this problem I can make it work by parsing this text with replace and strpos and stuff but that would be slow And the regular you gave me whould only catch '" (didn't get it to work how i wanted) but wouldn't catch the php null code (chr(0)) like addslashes will Hope you understand my problem now, Tnx in advance Greetz, Wico At 09:26 5-5-2000 -0500, Andrei Zmievski wrote:
On Fri, 05 May 2000, Wico de Leeuw wrote: At 09:11 5-5-2000 -0500, Andrei Zmievski wrote:
On Fri, 05 May 2000, Wico de Leeuw wrote:
Ok tnx, but what about the 0 code in php?
Sorry i mean the null code chr(0) What about it? -Andrei A room without books is like a body without a soul.
                  -- Marcus Tullius Cicero (106-43 B.C.)
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#18459) next »