Problem with ereg*_replace and backreference
| From: | Alain FORCIOLI | Date: | Thu, 15 Mar 2001 16:59:27 +0000 |
| Subject: | Problem with ereg*_replace and backreference | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44047@lists.php.net to get a copy of this message | ||
Hello,
This is a sample php code that doesn't work on my workstation.
<?php
$s = eregi_replace ("a(b)c", "A\\1C", "abc");
echo $s;
?>
The ouptut is "A\1Cbc" instead of "AbC".
Debian Gnu/Linux 2.2
Apache 1.3.14
php 3.0.18 (apache module)
Thanks for your help.
--
Alain FORCIOLI
Risc Technology mailto:alain.forcioli@risc.fr http://www.risc.fr/
APRIL mailto:aforcioli@april.org http://www.april.org/