ereg_replace help!

From: Date: Wed, 23 Aug 2000 16:11:11 +0000
Subject: ereg_replace help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13179@lists.php.net to get a copy of this message
I have a string: $string = "it belongs in the category animals\dogs"; I want to replace the \ with - $string = eregi_replace ("\\", "-", $string); When i try this i get: Warning: REG_EESCAPE in test.php on line 6 Why???? i can replace the \\ to a letter like a, and the error goes away. help! chris

« previous php.general (#13179) next »